// 配置静态文件访问路径,防止被拦截器拦截 注:**表示匹配该路径下的所有路径
<mvc**:annotation-driven** />
<mvc**:resources** location**="/WEB-INF/static/js/"** mapping**="/js/**"/>
<mvc:resources** location**="/WEB-INF/static/images/"** mapping**="/images/**"/>
<mvc:resources** location**="/WEB-INF/static/css/"** mapping**="/css/**"/>
<mvc:resources** location**="/WEB-INF/static/layer/"** mapping**="/layer/**"/>
<mvc:resources** location**="/WEB-INF/static/layui/"** mapping**="/layui/**"**/>
补上xml头部引用
<beans xmlns**="http://www.springframework.org/schema/beans"**
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi**:schemaLocation****="http://www.springframework.org/schema/beans**
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
**http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd"**\>