在Thymeleaf模板中包含JS库时拒绝执行脚本

问题描述

我想在我的Thymeleaf页面中使用JQuery和JSEncrypt。 通过研究,我发现可以通过将libs的.js文件包含在spring boot应用程序的/ static / js /文件夹中来实现这一目标。

我收到以下错误:

enter image description here

FolderTree:

Directory-tree of Spring Application

我的HTML看起来像这样:

$ DevTools listening on ...some address.

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)