方法一:将项目拷贝到webapps下,并更名为ROOT;

方法二:在tomcat/conf/service.xml的<host></host>中配置

<Context path="" debug="0" docBase="项目文件路径" reloadable="true" />

同时要将tomcat/webapps/ROOT 给删除了

方法三:将项目打包成war包,然后拷贝找webapps下,并更名为ROOT.war,并删除ROOT文件夹

 

一定要记住shutdown  和 startup

相关文章:

  • 2022-12-23
  • 2021-09-24
  • 2021-08-02
  • 2021-11-13
  • 2022-03-03
  • 2022-12-23
  • 2022-02-22
  • 2021-09-24
猜你喜欢
  • 2021-10-05
  • 2022-12-23
  • 2022-02-08
  • 2021-10-04
  • 2021-09-02
  • 2021-12-15
相关资源
相似解决方案