SpringCloud中thymeleaf访问页面解析出错:Could not parse as expression:

版权声明:IT交流QQ群328880248,欢迎大家来一起学习一起交流~本篇文章未经同意请勿转载! https://blog.csdn.net/m0_38072683/article/details/89600473

在这里插入图片描述
thymeleaf将js代码中的二维数组,当做了自己的标签,进行解析。

只需要在<script type="text/javascript"> 上加th:inline="none"

即:

<script type="text/javascript" th:inline="none">

参考博客: https://blog.csdn.net/minion_banana/article/details/82772034

猜你喜欢

转载自blog.csdn.net/m0_38072683/article/details/89600473