spring boot DEBUG org.apache.zookeeper.ClientCnxn-Got ping resp

控制台打印大量的

spring boot DEBUG org.apache.zookeeper.ClientCnxn - Got ping response for sessionid: 0x10005379

据说是“zookeeper的心跳机制日志”,如何关闭呢

解决:在带有starter的依赖中添加一下内容, 排除自带的logback依赖

 
 org.springframework.boot
 spring-boot-starter-logging
 

你可能感兴趣的:(java,springboot)