最近需要发送邮件,然后需要使用Thymeleaf来生成HTML文件。
实践 1. pom.xml 文件2. application.propertiesorg.springframework.boot spring-boot-starter-thymeleaf org.thymeleaf.extras thymeleaf-extras-java8time
# 后缀 spring.thymeleaf.prefix=classpath: /templates # 模板格式 spring.thymeleaf.mode=HTML5 spring.thymeleaf.encoding=UTF-8 spring.thymeleaf.content-type=text/html spring.thymeleaf.suffix=.html # 开发时关闭缓存,不然没法看到实时页面 spring.thymeleaf.cache=false



