小编Vas*_*dev的帖子

Thymeleaf:<label>将动态文本与静态文本Spring MVC连接起来

我正在尝试将一些文本附加到动态文本中,如下所示:

<label th:text="Hello ${worldText}"></label>
Run Code Online (Sandbox Code Playgroud)

但UI抛出:

TemplateProcessingException: Could not parse as expression: "Hello ${worldText}

有谁知道我怎么能做到这一点?

append spring-mvc dynamic-text thymeleaf spring-boot

3
推荐指数
1
解决办法
7914
查看次数