在WEB

系统教程 行业动态 更新时间:2024-06-14 17:01:31
在WEB-INF目录下移动JSP的问题(Problem with moving JSPs under WEB-INF directory)

当我将JSP文件与CSS-JS文件一起移动到WEB-INF / web /目录下时,我遇到了一个问题。 问题是,当一个JSP页面加载时,它不会加载CSS和JS文件。 如果你有任何想法,请帮助。

谢谢

欧麦尔

I am facing a problem when I move my JSP files along with CSS and JS files under WEB-INF/web/ directory. The problem is that, when a JSP page loads, it does not load CSS and JS files. Please help if you have any idea about it.

Thanks

Umar

最满意答案

除非您想编写控制器来为WEB-INF文件夹中的css / js文件提供服务,否则您需要将这些文件移出WEB-INF,以便它们可以作为应用服务器的静态文件。

Unless you want to write controllers to serve the css/js files in the WEB-INF folder, you will need to move those files out of WEB-INF so that they can be served as static files by the app server.

更多推荐

本文发布于:2023-04-20 16:24:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/810b9c074634e136f4feaf35ab94a963.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:WEB

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!