Skip to content

Support not (!) operator for profile selection [SPR-8728] #13370

Closed
@spring-projects-issues

Description

@spring-projects-issues

Tobias Mattsson opened SPR-8728 and commented

It would be really helpful if the profile attribute could take names of profiles that all has to be active.

For instance:

<beans profile="production,datacenter_us">
    ...
</beans>
<beans profile="production,datacenter_eu">
    ...
</beans>

As for syntax there would need to be a notation that can express both OR and AND, possibly using | and ,

Like:

<beans profile="staging|production">
    ...
</beans>

Even better would be if the syntax was in line with other expressions such as SpEL.


Affects: 3.1 M2

Issue Links:

7 votes, 12 watchers

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions