I don't want a specific bean to be loaded if either the active profile is test or local. However when I set the below , spring seems to be treating is as "or" and the method gets executed both when active profile is test or local. However if remove say local and keep test , then the bean is not created when the profile is test. 

```
@Profile({"!test","!local"})

```