SSM框架设置了一个可以拦截所有请求的一个过滤器
<servlet-mapping> <servlet-name>DispatcherServlet</servlet-name> <url-pattern>/</url-pattern></servlet-mapping>