Thymeleaf-如何传递变量

时间:2017-03-28 14:23:01

标签: xml thymeleaf

new-thread

我创建了一个参考值,并根据需要动态传递输出将是Incident id =“ABCD”

当我运行代码时,我得到输出为Incident id =“Reference” 似乎系统无法传递变量引用值

1 个答案:

答案 0 :(得分:0)

要让百里香评估某事,必须以th:开头。您的代码应该是

<Incident th:id="${Reference}">enter code here