目录结构如图,我在jsp里面
<script type="text/javascript" src="easyui/js/jquery.easyui.min.js"></script>
引用不到这个js文件
请问应该怎么引入
这样访问仍然不行
PHPz2017-04-18 10:18:49
Is yours unable to be linked in IDEA or something? I also encountered a similar problem:
Waiting for expert help to answer
伊谢尔伦2017-04-18 10:18:49
<link rel="stylesheet" href="${pageContext.request.contextPath}/templates/style/main.css" />
阿神2017-04-18 10:18:49
You can write it as an absolute address or a complete URL. Also check whether the web container you publish should have a project name.
So unified management of static resources is a good way. Pictures/js/css should be placed in a certain folder Use nginx to configure static resources.
PHP中文网2017-04-18 10:18:49
前面加上 /
<script type="text/javascript" src="/static/js/system/index.js"></script>
天蓬老师2017-04-18 10:18:49
The problem I am encountering now is that there is no problem in the idea, but when deployed to the server, one jsp cannot find the corresponding servlet, but another one in the same position as him can!
It’s really metaphysics