<servlet>
<servlet-name>springmvc</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>springmvc</servlet-name>
<!-- 切记不能是<url-pattern>/</url-pattern>,否则报404 -->
<url-pattern>/*</url-pattern>
</servlet-mapping>
本人愚钝,切勿吐槽,愿与君共勉之!