Continued
Third, the solution
1, for the " phenomenon one " solution
Add the following statement to the/outsourcingmanage/webcontent/web-inf/dispatcherservlet-servlet.xml file:
<mvc:default-servlet-handler/>
2, for " phenomenon two " solution
Method One, add the following statement in the/outsourcingmanage/webcontent/web-inf/dispatcherservlet-servlet.xml file:
<mvc:resources mapping= "/css/**" location= "/bootstrap/css/"/>
Method Two, modify the static.html, the "<link rel=" stylesheet "href=" Css/bootstrap.min.css "/>" modified to:
<link rel= "stylesheet" href= "/outsourcingmanage/bootstrap/css/bootstrap.min.css"/>
Method Three, modify the static.html static.jsp, and add the following statement:
<%@ page language= "java" contenttype= "text/html; Charset=utf-8 "
pageencoding= "UTF-8"%>
<%
String path = Request.getcontextpath ();
String basepath = request.getscheme () + "://" +request.getservername () + ":" +request.getserverport () +path+ "/";
%>
<base href= "<%=basePath%>" >
....
The difference between relative path and absolute path in Java Web and its Application Method (iii)