项目场景:
Spring boot2.2.1整合thymeleaf时,跳转页面出现404
问题描述
#ThymeLeaf配置
spring.thymeleaf.prefix=classpath:templates/
spring.thymeleaf.suffix=.html
spring.thymeleaf.enabled=false
spring.thymeleaf.mode=HTML
spring.thymeleaf.encoding=UTF-8
解决方案:
将spring.thymeleaf.enabled注释即可