【发布时间】:2022-11-02 15:25:31
【问题描述】:
thymeleaf 链接不能作为链接使用
<a th:href="@{/greeting}">welcome greeting web page</a>
【问题讨论】:
-
“不工作”是什么意思?当您在浏览器中查看页面的源代码时,您会看到什么?我猜你的 Thymeleaf 没有被解释。
标签: html routes thymeleaf href spring-thymeleaf
thymeleaf 链接不能作为链接使用
<a th:href="@{/greeting}">welcome greeting web page</a>
【问题讨论】:
标签: html routes thymeleaf href spring-thymeleaf
Like this file structure you can use thymeleaf or any routing
确保您的 html 文件位于 spring boot 应用程序的模板文件夹中
【讨论】: