在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.
更多推荐
发布评论