【发布时间】:2012-09-02 05:13:30
【问题描述】:
我有一个 Spring 项目:
资源文件位于: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 文件?
【问题讨论】:
标签: javascript css spring maven