Given:
<beans ... namespace decelerations>
<bean id="foo" class="com.example.foo" />
<beans profile="abc">
<bean id="bar" class="com.exmaple.bar" />
</beans>
</bean>
what is the name of the profile that foo is registered under? Is there a way to override foo in another profile definition? Is there a name for the default profile in spring when a profile is not explicitly specified.
Default profile in spring is “default”, see this: https://jira.springsource.org/browse/SPR-8203
You can change the default profile in web.xml by doing this:
Command line:
Env variable:
If active profile is set, it overrides the default.