spring不使用日志框架为什么打印不了debug信息

 时间:2026-04-30 11:53:07

1、添加spring框架依赖

spring不使用日志框架为什么打印不了debug信息

2、启动一个测试类

spring不使用日志框架为什么打印不了debug信息

3、日志打印信息如下,没有框架内部的debug信息

spring不使用日志框架为什么打印不了debug信息

4、原因是因为JavaUtilLog的isDebugEnabled()方法永远返回false

spring不使用日志框架为什么打印不了debug信息

5、spring框架默认使用java.util.logging框架

spring不使用日志框架为什么打印不了debug信息

spring不使用日志框架为什么打印不了debug信息

6、而在spring内容使用很多debug日志信息打印

spring不使用日志框架为什么打印不了debug信息

7、可以选择log4j,logback框架集成,就可以打印内部的debug信息了

  • Visual Studio中的c#程序如何增加安装程序类
  • 如何快速创建一个Spring mvc 实用项目(二)?
  • Notepad++列出类中函数名方法名的技巧
  • 如何下载maven插件源代码
  • idea 格式化设置
  • 热门搜索
    知网怎么查重 怡丽丝尔怎么样 中考分数低怎么上高中 怎么查别人的通话记录 写信格式怎么写 恐惧症怎么治疗 头发爱出油怎么办 怎么能瘦脸 双面打印怎么放纸 香肠嘴怎么变薄