PrepZone Logo
PrepZone
Back to Spring Boot

Spring Boot · Medium

How do you create lazy-initialized beans in Spring Boot?

Spring BootDI & Bean LifecycleBean InitializationSeniorStaff

Answer preview

How do you create lazy-initialized beans in Spring Boot?: Annotation-level: @Lazy on a @Component or @Bean method — that specific bean is created on first request.…