项目启动后可以访问tomcat首页
但是访问不了项目
这是server.xml中的配置
<Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true">
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" pattern="%h %l %u %t "%r" %s %b" prefix="localhost_access_log." suffix=".txt"/>
<Context docBase="prac-web" path="/prac-web" reloadable="true" /></Host>
这是tomcat的webapps目录
右键项目 - properties - Web Project Settings 中的 content root 值为:prac-web
求大神指点!