修改conf目录下server.xml
为springboot项目,外置tomcat设置不需要项目名访问

将修改host内容,将

<Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">

改为:

<Host name="localhost"  appBase="" unpackWARs="true" autoDeploy="true">
		
<Context docBase="webapps/你的项目名" path="" reloadable="true" source="org.eclipse.jst.jee.server:你的项目名"/>

如下图所示,改之前:
为springboot项目,外置tomcat设置不需要项目名访问
改之后:
为springboot项目,外置tomcat设置不需要项目名访问

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2022-01-23
  • 2021-10-22
  • 2022-12-23
  • 2021-07-25
猜你喜欢
  • 2022-12-23
  • 2021-04-03
  • 2022-01-18
  • 2022-12-23
  • 2021-05-01
  • 2021-04-08
相关资源
相似解决方案