Skip to content

TechPrimers/spring-boot-lazy-init-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot Lazy Initialization example

Versions Used

  • Spring Boot - 2.2.0-M1
  • H2 Database - 1.4.197

Configuration

spring.main.lazy-initialization is set to false by default. This can be set to true to enable Lazy Initialization in the Spring Boot Project.

Alternatives

  • http://localhost:8080/lazy - Uses LazyController and LazyService which can be marked manually as @Lazy for specific Beans

About

Spring Boot 2.2+ Lazy Initialization Example

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages