springboot 项目中thymleaf在控制台输出了一大堆信息。。如何控制使用thymeleaf不在控制台打印日志?

 

之前另外一个博客里说在pom里加入:

<properties>
    <thymeleaf.version>3.0.0.RELEASE</thymeleaf.version>
    <thymeleaf-layout-dialect.version>2.0.0</thymeleaf-layout-dialect.version>
</properties>
--------------------- 
作者:Annie_Mint 
来源:CSDN 
原文:https://blog.csdn.net/Zebra_916/article/details/78496470 
版权声明:本文为博主原创文章,转载请附上博文链接!

 

我试了一下,这样不行,后来在stackoverflow问了,解决方案如下:

在application.yml里面设置:

logging:
    level:
       org.thymeleaf: info

相关文章:

  • 2022-12-23
  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2021-09-10
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-13
  • 2021-11-04
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2021-06-03
相关资源
相似解决方案