这错误好像使用eclipse开发的同学就没有,我这里用的是idea。

场景:使用Springboot的项目,前端使用layui框架,模板引擎用的thymeleaf。报错信息如下:

org.thymeleaf.exceptions.TemplateProcessingException: Could not parse as expression: “

明显是thymeleaf报错,原因是啥,不知道,可能是thymeleaf模板引擎不喜欢layui吧,解决办法:

把红框框的内容变了。

org.thymeleaf.exceptions.TemplateProcessingException: Could not parse as expression: “

org.thymeleaf.exceptions.TemplateProcessingException: Could not parse as expression: “

重启项目,惊奇的发现没错了。玄学。

相关文章: