1、tomcat7.x --> conf --> server.xml
2、增加项目路径(黑体字所示)
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Context path="/HJWebframe" docBase="C:/workspace/HJWebframe/WebRoot" debug="0" privileged="true" reloadable="true" />
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
3、startUp启动