Spring Boot 通过 org.springframework.boot.autoconfigure.thymeleaf 包对 Thymeleaf 进行了自动配置。对应如下
org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration
org.springframework.boot.autoconfigure.thymeleaf.ThymeleafProperties
org.springframework.boot.autoconfigure.thymeleaf.ThymeleafTemplateAvailabilityProvider
通过 ThymeleafProperties 来配置 Thymeleaf,在application.properties中,以 spring.thymeleaf 开头来配置,可以查看ThymeleafProperties 源码来进行配置。