光阴似箭催人老,日月如移越少年。
<!-- 对静态资源的访问,如 js, css, jpg, png --> <!-- 如 HTML 里访问 /js/jquery.js, 则实际访问的是 /WEB-INF/asset/js/jquery.js --> <mvc:resources mapping="/js/**" location="/WEB-INF/asset/js/" cache-period="31556926"/> <mvc:resources mapping="/css/**" location="/WEB-INF/asset/css/" cache-period="31556926"/> <mvc:resources mapping="/img/**" location="/WEB-INF/asset/img/" cache-period="31556926"/> <mvc:resources mapping="/lib/**" location="/WEB-INF/asset/lib/" cache-period="31556926"/> <mvc:resources mapping="/favicon.ico" location="/WEB-INF/asset/img/favicon.ico" cache-period="31556926"/>
The tag in springmvc is mainly for accessing static resources. Specifically, you can download this tag on Baidu and read related blogs to learn more.
The questioner can try to comment out this configuration code, then the resources under this path will not be accessible.
The tag in springmvc is mainly for accessing static resources. Specifically, you can download this tag on Baidu and read related blogs to learn more.
The questioner can try to comment out this configuration code, then the resources under this path will not be accessible.