**[Pushkar Prakash](https://jira.spring.io/secure/ViewProfile.jspa?name=prakash.p)** opened **[SPR-16465](https://jira.spring.io/browse/SPR-16465?redirect=false)** and commented https://github.com/spring-projects/spring-framework/commit/bcd44f3798ed06c0704d2a3564b8a9735e747e87 As mentioned in the above commit, the following works ``` <beans profile="p1,!p2"> ``` But, this does not work ``` <beans profile="!p1,!p2"> ``` Even this does not work. ``` <beans profile="[{!p1},{!p2}]"> ``` --- **Affects:** 3.2.18, 4.3.14, 5.0 GA **Reference URL:** https://github.com/spring-projects/spring-framework/commit/bcd44f3798ed06c0704d2a3564b8a9735e747e87 **Issue Links:** - #17063 Support AND operator in `@Profile` annotation - #13370 Support not (!) operator for profile selection **Referenced from:** commits https://github.com/spring-projects/spring-framework/commit/285b01fc795a8c90561900eb655b5fc9067ea172, https://github.com/spring-projects/spring-framework/commit/14440949b3b069a2831f7bbfe62ed1cb90561b7a
Pushkar Prakash opened SPR-16465 and commented
bcd44f3
As mentioned in the above commit, the following works
But, this does not work
Even this does not work.
Affects: 3.2.18, 4.3.14, 5.0 GA
Reference URL: bcd44f3
Issue Links:
@ProfileannotationReferenced from: commits 285b01f, 1444094