修改conf目录下server.xml
将修改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:你的项目名"/>
如下图所示,改之前:
改之后: