修改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设置不需要项目名访问

相关文章: