org.xml.sax.SAXParseException:attribute" th的值:replace"与元素类型相关联" tr"不得包含'<'字符

时间:2016-06-20 05:05:46

标签: html5 spring-mvc spring-boot thymeleaf

<tr th:replace="textbox1 :: textbox1”></tr>

正在产生此错误

org.xml.sax.SAXParseException: The value of attribute "th:replace" associated with an element type "tr" must not contain the '<' character.

可能导致此异常的原因是什么?

1 个答案:

答案 0 :(得分:2)

您应该将更改为",如下所示;)

<tr th:replace="textbox1 :: textbox1"></tr>