记录是为了更好的成长!

1、引入依赖

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-thymeleaf</artifactId>
        </dependency>    

 

2、配置属性

spring.thymeleaf.cache=false
spring.thymeleaf.prefix=classpath:/templates/
spring.thymeleaf.check-template-location=true
spring.thymeleaf.suffix=.html
spring.thymeleaf.encoding=UTF-8
spring.thymeleaf.content-type=text/html
spring.thymeleaf.mode=HTML5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

以上内容代表个人观点,仅供参考,不喜勿喷。。。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
  • 2021-08-26
  • 2021-11-24
  • 2021-11-13
  • 2021-09-09
猜你喜欢
  • 2021-07-21
  • 2021-08-31
  • 2021-05-21
  • 2021-09-11
  • 2021-06-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案