Malformed markup: Attribute “prop“ appears more than once in element

简介: Malformed markup: Attribute “prop“ 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 "prop" appears more than once in element


报错原因和解决办法:

这里我是把之前SSM开发的微服务项目改成SpringBoot开发的单体项目,直接把html复制过来,有意思的是下面这样的代码在SSM中不报错,但是在SpringBoot中报错,报错原因就是有两个一模一样的prop,删掉一个即可!

目录
相关文章
|
3月前
|
CDN
Iconfont——Error: <path> attribute d: Expected number, "MNaNNaNaNaNNaNNaN…".
Iconfont——Error: <path> attribute d: Expected number, "MNaNNaNaNaNNaNNaN…".
37 0
|
6月前
|
小程序 JavaScript
Avoid mutating a prop directly since the value will be overwritten whenever the parent comp
Avoid mutating a prop directly since the value will be overwritten whenever the parent comp
Missing required prop: “modelValue“
Missing required prop: “modelValue“
118 0
解决办法:Type safety: The expression of type List needs unchecked conversion to conform
解决办法:Type safety: The expression of type List needs unchecked conversion to conform
322 0
[Accessibility] Missing contentDescription attribute on image
[Accessibility] Missing contentDescription attribute on image
181 0
[Accessibility] Missing contentDescription attribute on image
|
XML Java 数据库连接
Open quote is expected for attribute "{1}" associated with an element type "id".
Open quote is expected for attribute "{1}" associated with an element type "id".
201 0
Open quote is expected for attribute "{1}" associated with an element type "id".
|
TensorFlow 算法框架/工具
has no attribute ‘swish‘
has no attribute ‘swish‘
158 0
The href attribute requires a valid value to be accessible
The href attribute requires a valid value to be accessible
226 0
|
C语言 编译器 C++