我有一个Spring项目:
资源文件位于以下位置:子文件夹的src/main/resources/style/.........lots
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文件?
发布于 2012-09-09 02:03:07
https://stackoverflow.com/questions/12333020
复制相似问题