mvc:resources配置说明

<mvc:resources location="/WEB-INF/ui/js/“ mapping="js/**" />
<mvc:resources location="/WEB-INF/ui/css/" mapping="css/**" />
<mvc:resources location="/WEB-INF/ui/images/" mapping="images/**" />
<mvc:resources location="/WEB-INF/ui/scripts/" mapping="scripts/**" />
<mvc:resources location="/" mapping="**.html" />

location是资源在webapp下的绝对路径,mapping是在html中写的路径
第一行的意思是:html中写 src=“js/xxxx.js”,就会去/WEB-INF/ui/js文件夹下查找

mvc:resources配置说明

上一篇:聊聊数据权限哪些事儿


下一篇:phpize 报错:Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script.