servlet context to tomcat 7 root

后端 未结 3 2039
故里飘歌
故里飘歌 2021-01-13 23:56

Whats the best approach to place servlet context to tomcat 7 root? I have tried this post here but didn\'t work for me; i\'m using Apache Tomcat/7.0.42

3条回答
  •  独厮守ぢ
    2021-01-14 00:22

    check the context documentation. You're looking for the docBase attribute for your webapp's path and the path attribute for the root context, e.g. leave it empty as described in the attribute's documentation.

提交回复
热议问题