【发布时间】:2017-02-18 05:49:54
【问题描述】:
我想在 Thymeleaf 方言中使用 Thymeleaf 方言,但不能。我已经尝试过,但效果不佳:
<h2 th:text="|${response.name} has: |">
Dunie has:
<span th:text="|-${response.size}-|" class="paleo">-4-</span>
</h2>
th:text of h2 删除其中的所有内容。我想在渲染后得到类似的东西:
<h2>
Philie has:
<span class="paleo">-3-</span>
</h2>
那么,我怎样才能达到我的目标呢?
【问题讨论】:
标签: spring-boot thymeleaf