????Thymeleaf相关配置

#thymeleaf start
spring.thymeleaf.mode=HTML
spring.thymeleaf.encoding=UTF-8
spring.thymeleaf.content-type=text/html
#开发时关闭缓存,不然没法看到实时页面
spring.thymeleaf.cache=false
# 定位模板的目录 
spring.mvc.view.prefix=classpath:/templates/
# 给返回的页面添加后缀名
spring.mvc.view.suffix=.html
#thymeleaf end

https://www.cnblogs.com/kingsonfu/p/11516967.html

SpringBoot融合Thymeleaf中template文件夹&访问静态资源 & Springboot打包成jar包后访问不到template模板

https://blog.csdn.net/lei_da_gou/article/details/81178188

SpringBoot融合Thymeleaf中template文件夹&访问静态资源 & Springboot打包成jar包后访问不到template模板

相关文章:

  • 2021-11-20
  • 2021-10-12
  • 2021-11-20
  • 2021-11-20
  • 2021-11-20
  • 2021-11-20
  • 2021-11-20
  • 2021-11-20
猜你喜欢
  • 2022-02-24
  • 2022-12-23
  • 2021-11-07
  • 2021-12-07
  • 2022-12-23
  • 2021-12-23
  • 2021-11-20
相关资源
相似解决方案