第1个回答 推荐于2016-07-21
<!-- 默认首页 -->
<mvc:view-controller path="/" view-name="redirect:/loginpage" />
<!-- 拦截器 -->
<mvc:interceptors>
<mvc:interceptor>
<mvc:mapping path="/**"/>
<mvc:exclude-mapping path="/loginpage/**"/>
<bean class="com.me.common.LoginInterceptor" />
</mvc:interceptor>
</mvc:interceptors>
<mvc:exclude-mapping path="/loginpage/**"/>
------------------改成----->
<mvc:exclude-mapping path="/"/>
<mvc:exclude-mapping path="/loginpage/**"/>
估计是你访问"/"时就到了拦截器本回答被提问者和网友采纳