thymleaf 中的 js 脚本出现 spring-boot 错误
我在我的 thymleaf 中包含了 .css 和 .js ,如下所示:
<script src="/javascript/one.js"></script>
<script src="/javascript/two.js"></script>
<script src="/javascript/three.js"></script>
此错误显示在控制台中
2016-07-24 21:08:05 WARN PageNotFound:1149 - No mapping found for HTTP request with URI [/javascript/one.js] in DispatcherServlet with name 'dispatcherServlet'
2016-07-24 21:08:05 DEBUG DispatcherServlet:997 - Successfully completed request
我不知道我在哪里丢失
I included .css and .js in my thymleaf like this :
<script src="/javascript/one.js"></script>
<script src="/javascript/two.js"></script>
<script src="/javascript/three.js"></script>
this error showing up in console
2016-07-24 21:08:05 WARN PageNotFound:1149 - No mapping found for HTTP request with URI [/javascript/one.js] in DispatcherServlet with name 'dispatcherServlet'
2016-07-24 21:08:05 DEBUG DispatcherServlet:997 - Successfully completed request
i dont know where i am missing
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 thymleaf 中,您需要像这样添加 javascript 源文件夹
in thymleaf you need add javascript source folder like this