gpt4 book ai didi

spring-mvc - 蒲公英数据表出错 - 无法加载资源 : the server responded with a status of 404 (Not Found)

转载 作者:行者123 更新时间:2023-12-02 03:23:28 26 4
gpt4 key购买 nike

我第一次安装了蒲公英数据表。我关注了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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com