Tomcat,默认部署到ROOT问题的解决

开发配置:

  • Tomcat 8.5
  • MyEclipse2017

1.问题描述:使用MyEclipse将项目部署到Tomcat下时,默认部署到ROOT

控制台出现警告:
警告 [localhost-startStop-1] org.apache.catalina.core.StandardContext.setPath A context path must either be an empty string or start with a ‘/’ and do not end with a ‘/’. The path [/] does not meet these criteria and has been changed to []

2.原因:context.xml中的context设置成了”/”:


<Context path="/">
Context>

改为:


<Context path="/myapp">
Context>

OK!

你可能感兴趣的:(jenkins)