Closed
Description
Affects: Spring 5.2
If I create custom @Profile
annotation such as this:
@Profile("sapConnector")
public @interface SapConnectorProfile {
}
and then annotate some bean with @SapConnectorProfile
and set the property spring.profiles.active=demoConnector
, the bean is still loaded.
If I use @Profile("sapConnector")
directly on the bean, the bean is not loaded.
My original question on stack overflow: https://stackoverflow.com/questions/58554912/custom-spring-profile-annotation