springboot整合freemark,thymeleaf

先在pom文件引入freemark,thymeleaf的依赖,thymeleaf的html文件放在Resource-templates-thymeleaf目录下,freekmarker的ftl文件放在Resource-templates-thymeleaf目录下,再properties文件设置各自的相关配置,如下:
(freemark文件为ftl文件,thymeleaf为html文件)
 

猜你喜欢

转载自www.cnblogs.com/afei1759/p/12099468.html