How to provide a context configuration for a web application in Tomcat?

前端 未结 6 1534
星月不相逢
星月不相逢 2020-12-04 08:30

I have a web application that relies on some resources and parameters to be configured after it is installed, like a JDBC connection.

What I have come up with is pro

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-04 09:24

    By referring to Apache Tomcat 5.5 Documentation:

    In the $CATALINA_HOME/conf/context.xml file: the Context element information will be loaded by all webapps

    You could easily try this approach, it might work, but I'm not sure if this is a good solution especially if you are running multiple webapps on Tomcat.

提交回复
热议问题