欧阳克2016-11-21 10:22:32
<servlet> <servlet-name>springMvc</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:spring/spring-mvc.xml</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>springMvc</servlet-name> <url-pattern>*.html</url-pattern> </servlet-mapping>
springmvc 配置为拦截.html的就可以了,这个随意配置的。。。当然.html结尾可以做伪静态。。