<mvc:interceptors>
<mvc:interceptor>
<mvc:mapping path="/mgr/**"/>
<bean class="top.malaoshi.interceptor.LoginInterceptor"/>
</mvc:interceptor>
</mvc:interceptors>
path="/mgr/**":表示访问/mgr/下的资源,及 子路径 下的资源,都会 拦截
如:/mgr/list、/mgr/user/list都会被拦截path="/mgr/*"(注意一个*):表示访问/mgr/下的资源会 拦截;但 子路径 下的资源,不会拦截
如:/mgr/list会被拦截,但/mgr/user/list不会拦截