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文件?