Different environment variables per war in tomcat

后端 未结 2 1221
攒了一身酷
攒了一身酷 2021-01-19 02:23

Is there a way to have different environment variables for different war files in tomcat? I am using a 3rd party war and need to have multiple deployments of the same war b

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-19 02:53

    Its easy if you run two instances of Tomcat independently. I'm assuming here you are talking about the OS environment variables.

    You can also set properties in Tomcat for each war/web app. That would let you run two wars in one Tomcat instance. But that's not what you asked.

提交回复
热议问题