简体   繁体   English

在Spring MVC项目中找不到少量CSS和JS文件的消息页面

[英]Message page not found for few css and js files in Spring MVC project

I an unable to access the few of CSS and JS files in my SPring MVC project. 我无法访问SPring MVC项目中的少数CSS和JS文件。 Below are the code in jsp page. 以下是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>

It is able to access style.css and jquery.js files where as other files are not found but they have been kept with the these files only. 它能够访问style.css和jquery.js文件,在这些文件中找不到其他文件,但仅与这些文件一起保存。

Recheck your paths. 重新检查您的路径。 if it's dynamic, you probably need spring MVC specific linking. 如果它是动态的,则可能需要Spring MVC特定的链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM