lundi 23 février 2015

How to set properties on a Tomcat application specific?

I have a tomcat service with a single application, and set the following property in setenv.bat:


set JAVA_OPTS=%JAVA_OPTS% -Dspring.profiles.active=production


This uses spring-boot and ensures the application always runs in production profile mode.


Problem: I now want to drop a 2nd application in that should not run in production. How could I configure the java opts application specific?


Is that possible at all? Or would I have to create a 2nd tomcat instance?


Aucun commentaire:

Enregistrer un commentaire