spring.thymeleaf.content-type=text/html
server.context-path=/thymeleaf
报错,说此方法已经过时
原因:SpringBoot 2.0 版本之后进行了一些修改
解决方案:改为
spring.thymeleaf.servlet.content-type=text/html
server.servlet.context-path=/thymeleaf
即可
spring.thymeleaf.content-type=text/html
server.context-path=/thymeleaf
报错,说此方法已经过时
原因:SpringBoot 2.0 版本之后进行了一些修改
解决方案:改为
spring.thymeleaf.servlet.content-type=text/html
server.servlet.context-path=/thymeleaf
即可