目的
- 外网可以直接进行访问,不用拦截
步骤
- springmvc-servlet.xml配置文件配置
<mvc:resources mapping="/upload/**" location="/upload/" cache-period="31556926"/>
<mvc:resources mapping="/view/**" location="/view/" cache-period="31556926"/>
<mvc:resources mapping="/upload/**" location="/upload/" cache-period="31556926"/>
<mvc:resources mapping="/view/**" location="/view/" cache-period="31556926"/>