1、打开server.xml ,添加<Context path="" docBase="myhtml" debug="0" reloadable="true" />,

    docBase="myhtml"  myhtml是我建的默认文件夹名字,位置在$tomcat/webapps/下面如下图所示

修改tomcat的默认首页

2、 修改conf/web.xml,添加<welcome-file>test.html</welcome-file>,test.html是自己创建的html文件,test.html的报错路径在webapps\myhtml/test.html  myhtml是自己刚刚创建的文件   截图如下:

修改tomcat的默认首页

 3、重新启动tomcat,如此即可,tomcat的默认首页即是你添加的html文件

 

 

相关文章:

  • 2021-04-26
  • 2021-09-10
  • 2021-12-02
  • 2021-09-30
  • 2021-12-05
  • 2021-12-15
  • 2022-12-23
猜你喜欢
  • 2021-08-07
  • 2022-12-23
  • 2021-12-02
  • 2021-11-17
  • 2021-10-18
  • 2021-06-03
  • 2022-12-23
相关资源
相似解决方案