Use spring.profiles.active
to toggle the QUnit profile in one of the following places:
- system environment variables
- JVM system properties
- servlet context parameters in web.xml
- JNDI
For example, the web.xml can be set to the production profile:
<servlet>
<servlet-name>dispatcher</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>spring.profiles.active</param-name>
<param-value>production</param-value>
</init-param>
</servlet>
But the command-line can override it:
-Dspring.profiles.active="QUnit"
References