How does Tomcat locate the webapps directory?

前端 未结 4 1555
北恋
北恋 2020-11-30 03:33

How does Tomcat locate webapps directory? Where is this location set? Is it a relative directory?

4条回答
  •  生来不讨喜
    2020-11-30 04:14

    It can be changed in the $CATALINA_BASE/conf/server.xml in the . See the Tomcat documentation, specifically the section in regards to the Host container:

    Tomcat 6 Configuration

    Tomcat 7 Configuration

    The default is webapps relative to the $CATALINA_BASE. An absolute pathname can be used.

    Hope that helps.

提交回复
热议问题