我第一次安装了蒲公英数据表。我关注了this指导。我使用的是 1.0.1 版本
你能帮我解决以下错误吗:
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:8080/website/dandelion/datatables/css/jquery.dataTables.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:8080/website/dandelion/jquery/js/jquery.js
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:8080/website/dandelion/datatables/js/jquery.dataTables.js
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:8080/website/dandelion/datatables/features/filtering/jquery.dataTables.yadcf.js
Failed to load resource: the server responded with a status of 404 (Not Found)
dandelion-datatables-91438756c71be2df6b2ee155197c3192.js:34
Uncaught ReferenceError: $ is not defined
http://localhost:8080/website/dandelion/datatables/features/filtering/jquery.dataTables.yadcf.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:8080/website/dandelion/datatables/css/jquery.dataTables.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:8080/enepath/dandelion/datatables/css/jquery.dataTables.css
最佳答案
我需要将以下内容添加到 mvc-core-config.xml
以公开蒲公英的资源:
<mvc:resources mapping="/dandelion/**" location="classpath:/META-INF/resources/dandelion/" />
关于spring-mvc - 蒲公英数据表出错 - 无法加载资源 : the server responded with a status of 404 (Not Found),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31674330/