程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> 編程解疑 >> 導航-springmvc+hibernate+spring js無法引入

導航-springmvc+hibernate+spring js無法引入

編輯:編程解疑
springmvc+hibernate+spring js無法引入

代碼如下:問題是:工程裡的js無法引入!

js 目錄:全類名:/SpringMVC/WebContent/resources

後台首頁

href="./resources/easyui/themes/default/easyui.css" />
href="./resources/easyui/themes2/icon.css" />



<%=basePath%>



頁面報錯:

"NetworkError: 404 Not Found - http://localhost:8080/SpringMVC/resources/easyui/jquery.easyui.min.js"
jquery.....min.js
"NetworkError: 404 Not Found - http://localhost:8080/SpringMVC/resources/easyui/locale/easyui-lang-zh_CN.js"
easyui-...h_CN.js
"NetworkError: 404 Not Found - http://localhost:8080/SpringMVC/resources/easyui/themes2/icon.css"
icon.css
"NetworkError: 404 Not Found - http://localhost:8080/SpringMVC/resources/easyui/jquery.min.js"
jquery.min.js
"NetworkError: 404 Not Found - http://localhost:8080/SpringMVC/resources/easyui/themes/default/easyui.css"
easyui.css
"NetworkError: 404 Not Found - http://localhost:8080/SpringMVC/resources/easyui/jquery.easyui.min.js"
jquery.....min.js
"NetworkError: 404 Not Found - http://localhost:8080/SpringMVC/resources/easyui/locale/easyui-lang-zh_CN.js"

最佳回答:


xml 文件設置靜態資源訪問

類似於:

    <resources mapping="/resources/**" location="/resources/" />
    <resources mapping="/images/**" location="/images/" />
    <resources mapping="/js/**" location="/js/" />
qq_35081827
sinat_35123575
  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved