I have the following configuration in my spring context:
<beans profile="!prof1" >
<security:authentication-manager id="authenticationManager" erase-credentials="true">
<security:authentication-provider ref="1" />
<security:authentication-provider ref="2" />
<security:authentication-provider ref="3" />
</security:authentication-manager>
</beans>
<beans profile="prof1" >
<security:authentication-manager id="authenticationManager" erase-credentials="true">
<security:authentication-provider ref="0" />
<security:authentication-provider ref="1" />
<security:authentication-provider ref="2" />
<security:authentication-provider ref="3" />
</security:authentication-manager>
</beans>
There is question which <beans>
elements will be parsed take into account:
that prof1 and prof2 profiles are activated.
It looks like it always choose this one <beans profile="prof1" >
, but not sure why it does not choose another one <beans profile="!prof1" >
. Can I relay that it always will choose <beans>
without exclamation mark?