天天看點

springboot做api服務時不使用thymeleaf的相關警告DefaultTemplateResolverConfiguration 的消除

springboot在不配置thymeleaf相關屬性的情況下,會提示如下的問題

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

這是你隻需要在你的application.yml或application.properties檔案中添加如下配置即可消除

spring: 
  thymeleaf: 
    check-template-location: false
      

  

繼續閱讀