springboot做api服务时不使用thymeleaf的相关警告DefaultTemplateResolverConfiguration 的消除

springboot在不配置thymeleaf相关属性的情况下,会提示如下的问题

DefaultTemplateResolverConfiguration - Cannot find template location: classpath:/templates/ 

这是你只需要在你的application.yml或application.properties文件中添加如下配置即可消除

spring: 
  thymeleaf: 
    check-template-location: false

  

posted @ 2019-08-28 09:06  铭久  阅读(1196)  评论(0编辑  收藏  举报