springboot2.1.7整合thymeleaf代码怎么编写-创新互联
这期内容当中小编将会给大家带来有关springboot2.1.7整合thymeleaf代码怎么编写,文章内容丰富且以专业的角度为大家分析和叙述,阅读完这篇文章希望大家可以有所收获。
1.在pom里面添加thymeleaf依赖
2.添加application.properties配置
spring.thymeleaf.prefix=classpath:/templates/spring.thymeleaf.check-template-location=truespring.thymeleaf.suffix=.htmlspring.thymeleaf.encoding=UTF-8spring.thymeleaf.servlet.content-type=text/htmlspring.thymeleaf.mode=HTML5spring.thymeleaf.cache=falsespring.resources.chain.strategy.content.enabled=truespring.resources.chain.strategy.content.paths=/**
上述就是小编为大家分享的springboot2.1.7整合thymeleaf代码怎么编写了,如果刚好有类似的疑惑,不妨参照上述分析进行理解。如果想知道更多相关知识,欢迎关注创新互联行业资讯频道。
当前名称:springboot2.1.7整合thymeleaf代码怎么编写-创新互联
分享路径:http://myzitong.com/article/cedcsj.html