There are two ways to solve the problem
One is , you use the Apache server, HTML does not give Tomcat processing, so you can not find the HTML and other static resources, so you first stop Apache, and then only to try Tomcat cat.
The
second is , like me, using the Jetty development program, but when playing the war package forget to kill the Web.xml in the jetty modify the static resource code. Like the next, kill can.
Copy Code code as follows:
<servlet>
<servlet-name>default</servlet-name>
<!--<servlet-class>org.mortbay.jetty.servlet.DefaultServlet</servlet-class>-->
<servlet-class>
Org.eclipse.jetty.servlet.DefaultServlet
</servlet-class>
<init-param>
<param-name>useFileMappedBuffer</param-name>
<param-value>false</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
Did not kill this paragraph before, the appearance is such nausea:
After killing the jetty configuration, it becomes the following, haha!!