原帖 https://grokonez.com/hibernate/use-hibernate-lazy-fetch-eager-fetch-type-spring-boot-mysql In the tutorial, JavaSampleApproach will help you understand Hibernate Lazy Fetch Type and Eager Fetch Type by sample code with Spring Boot & MySql database…
about hibernate lazy load is that used when loaded again.it can increase efficienty and sava memory..each on a database operation will open a new one session..then immediately shut down 比如在我们的应用中,user->post形成一对多的映射,User中有一个包含post的List.在User中,有多个属性:na…