【发布时间】:2018-06-10 10:26:54
【问题描述】:
我在 Spring Boot 应用程序中有以下项目结构 -
/templates/home/index.html
/templates/includes/header.html
我想在索引文件中包含头文件。 我已经尝试了链接 - https://stackoverflow.com/questions/23538693/include-html-page-in-thymeleaf#=
但是冒号 '::' 显示错误。
我是百里香的新手。谁能解释一下? 谢谢。
【问题讨论】:
-
请添加 index.html 和准确的错误堆栈跟踪
-
谢谢。我解决了这个问题。代码如下 - ` //header.html
标签: spring spring-mvc spring-boot thymeleaf