【发布时间】:2014-08-06 08:58:58
【问题描述】:
默认情况下,Spring Boot Application 在 classpath://templates
下搜索 thymeleaf 模板我们如何再添加一个解析器 例如,我们需要使用 FileTemplateResolver 从 "c:\MyTemplates" 等本地目录中搜索模板?
【问题讨论】:
-
我不知道 Spring boot 仅在模板文件夹中搜索 thymeleaf 模板。我在静态文件夹中有我的,但没有解决。 +1
标签: spring spring-mvc thymeleaf