关于cvc-complex-type.2.4.d: Invalid content was found starting with element 'mvc:exclude-mapping'. No child element is expected at this point.的血坑
百度了好多大多数都是一样的解决方案,出现这个问题看看是不是
<mvc:exclude-mapping path="/login"/>放到<bean class="com.fan.qx.web.LoginInterceptor"></bean>下面了,正确的配置:
<!-- 配置登陆拦截器 -->
<mvc:interceptors>
<mvc:interceptor>
<mvc:mapping path="/**"/>
<mvc:exclude-mapping path="/login"/>
<bean class="com.fan.qx.web.LoginInterceptor"></bean>
</mvc:interceptor>
</mvc:interceptors>
一定注意:<mvc:exclude-mapping path="/login"/>必须放到<bean class="com.fan.qx.web.LoginInterceptor"></bean>上面