<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文件夹下查找