Загрузка...

Spring & Spring Boot Annotations Series - #7 - @Lazy Annotation

Hi, welcome to Spring & Spring Boot Annotations Series. In this video, we will learn how to use @Lazy annotation to load the Spring beans lazily (on-demand).

By default, Spring creates all singleton beans eagerly at the startup/bootstrapping of the application context.

You can load the Spring beans lazily (on-demand) using @Lazy annotation.

The @Lazy annotation can be used with @Configuration, @Component, and @Bean annotations.

Eager initialization is recommended: to avoid and detect all possible errors immediately rather than at runtime.

Complete playlist: https://youtube.com/playlist?list=PLGRDMO4rOGcN-8NFRfIBkbdJuifnWkPCR

#spring #springboot #annotations

Видео Spring & Spring Boot Annotations Series - #7 - @Lazy Annotation канала Java Guides
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки

На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.

Об использовании CookiesПринять