报错信息:
org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: "class path resource [templates/html/aa.html]" - line 12, col 81)] with root cause
org.attoparser.ParseException: (Line = 12, Column = 81) Malformed markup: Attribute "prop" appears more than once in element
报错原因和解决办法:
这里我是把之前SSM开发的微服务项目改成SpringBoot开发的单体项目,直接把html复制过来,有意思的是下面这样的代码在SSM中不报错,但是在SpringBoot中报错,报错原因就是有两个一模一样的prop,删掉一个即可!