LazyInitializationException in SpringBoot JPA | could not initialize proxy - no Session | SpringBoot
ฝัง
- เผยแพร่เมื่อ 26 ธ.ค. 2021
- In this video you will learn how to solve LazyInitializationException error when working with JPA and Hibernate in Spring Boot and Spring Data applications.
My Top Playlists:
Spring Boot with Angular : • Spring Boot + Angular
Spring Boot with Docker & Docker Compose : • Spring Boot Docker & D...
Spring Boot with Kubernetes : • Spring Boot Docker Kub...
Spring Boot with AWS : • Spring Boot + AWS
Spring Boot with Azure : • Spring Boot Azure
Spring Data with Redis : • Spring Data with Redis
Spring Boot with Apache Kafka : • Apache kafka
Spring Boot with Resilience4J : • SpringBoot Resilience4j - วิทยาศาสตร์และเทคโนโลยี
thanks. I added @Transactional annotation on top of the service and it worked
Hi! I added 3 @NamedAttributeNode and it does not work... Do you know the solution?
Nice! Thx! Is it possible a git repository for this demo?
Do we get git repository
great i just add @Transactional below @service like u said and it worked
thank you
You're welcome