1
我有一个Spring项目:春行家,访问CSS/JS文件
资源文件是在:src/main/resources/style/
.........很多的子文件夹
servlet.xml中:
<mvc:annotation-driven/>
<mvc:resources mapping="/resources/**" location="/resources/" />
和我的jsp:
<link rel="stylesheet" href="<%=request.getContextPath()%>/resources/style/jquery_ui/css/custom-theme/jquery-ui-1.8.23.custom.css"/>
当我浏览到我的观点,给出了这样的链接不如地利:
http://localhost:8080/webapp/WEB-INF/classes/style/jquery_ui/css/custom-theme/jquery-ui-1.8.23.custom.css
我怎样才能让它显示正确的CSS文件?