@Conditional & it`s son, @Profile | Dependency Injection |Spring Tutorial |Ch1|E13|

Опубликовано: 23 Март 2026
на канале: STUDevLantern
352
10

in this session we talk about the spring and @Conditional in spring annotation based configuration that help us set some conditions on whether a bean definition should be taken into account and configured or ignored.

we then introduce the @Profile annotation which is a @Conditional itself and specifies special rule for whether a bean definition is in or not!