问题
运行项目,报错,控制台显示
Malformed markup: Attribute “method” appears more than once in element
详细如下:
......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 "method" appears more than once in element
......
解决
实际上是HTML有误,在aa.html中“method”重复出现了,删除多余的method即可
(前端开发送bug,泪目(╯‵□′)╯︵┻━┻)
(令人窒息的是,同用的前端代码,如果不用Thymeleaf,就不会明显出错,项目还可以正常运用)