Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 423 Bytes

README.md

File metadata and controls

11 lines (8 loc) · 423 Bytes

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