You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
@Profile should be able to define profiles to accomplish the 'and' scenario [SPR-15634] #20193
It behaves: use this bean when the profile is either jmxorfile (mostly for the second scenario, seems I need other approach for the first scenario, I mean, an annotation that wraps other annotations)
Seems we need a new attribute that behaves how an AND. It to represents:
use this bean when the profiles are jmxandfile
Sadly it is not a @Configuration class where I am able to use the @Profile together with the @Configuration and @Bean to represent the AND scenario. But here we are in the business or model area.
Not sure if exists other approach to accomplish this.
Activity
spring-projects-issues commentedon Jun 7, 2017
Juergen Hoeller commented
Looks like a duplicate of #17063?
spring-projects-issues commentedon Jun 7, 2017
Manuel Jordan commented
Yes, practically the same scenario. But I think is important that perhaps a new annotation for the non
@Configurationclasses should be created.