Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 在SpringMVC项目中找不到少数css和js文件的消息页_Javascript_Css - Fatal编程技术网

Javascript 在SpringMVC项目中找不到少数css和js文件的消息页

Javascript 在SpringMVC项目中找不到少数css和js文件的消息页,javascript,css,Javascript,Css,我无法访问SpringMVC项目中的少数CSS和JS文件。下面是jsp页面中的代码 <link rel="stylesheet" type="text/css" href="/css/style.css" /> <link rel="stylesheet" type="text/css" href="/css/demopage.css" /> <link rel="stylesheet" type="text/css" href="/css/demo_table

我无法访问SpringMVC项目中的少数CSS和JS文件。下面是jsp页面中的代码

<link rel="stylesheet" type="text/css" href="/css/style.css" />
<link rel="stylesheet"  type="text/css" href="/css/demopage.css" />
<link rel="stylesheet"  type="text/css" href="/css/demo_table.css" />
<link rel="stylesheet"  type="text/css" href="/css/demo_table_jui.css" />
<link rel="stylesheet"  type="text/css" href="/css/jquery-ui-1.8.24.custom.css" />
<script src="/javascript/jquery.js" type="text/javascript"></script>
<script src="/javascript/jquery_dataTables.js" type="text/javascript"></script>


它可以访问style.css和jquery.js文件,但找不到其他文件,但它们只保存在这些文件中。

重新检查路径。如果是动态的,您可能需要特定于spring MVC的链接。

尝试使用正确的关闭过程@KarthikSivakumar WHAT?我已经尝试过多次使用close brace。但每次我收到page not found消息时。您试图访问的文件是否确实存在?@Askanison4它可以访问style.css,而放置在同一目录中的其他css文件不可访问。它可以访问style.css,而放置在同一目录中的其他css文件不可访问。奇怪,嗯,这附近有一个工作。。。。让您的样式css@import url(“”)与其他css的样式相同。无论如何,这是最好的做法。这样,您只有一个服务器调用。希望这能有所帮助:)