Go to the conf folder of tomcat
vi server.xml
Find the host tag
Add to
<Context path="" docBase="project root directory" workDir="project root directory/WEB-INF/work" reloadable="false"> </Context>
Restart tomcat, access port 8080, not the tomcat page