In mine, web.xmlI declare ContextLoaderListenerto configure the spring application as follows:
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
In one of my spring xml configuration files, I use a different beans profile for development and production.
<beans profile="production">
<bean />
</beans
<beans profile="development">
<bean />
</beans
How can I set beans default profile in web.xml? is there something similar to the following when used ContextLoaderListenerinstead of spring servlet:
<init-param>
<param-name>spring.profiles.active</param-name>
<param-value>production</param-value>
</init-param>
bachr source
share