Javascript 在SpringMVC项目中找不到少数css和js文件的消息页
我无法访问SpringMVC项目中的少数CSS和JS文件。下面是jsp页面中的代码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
<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的样式相同。无论如何,这是最好的做法。这样,您只有一个服务器调用。希望这能有所帮助:)