<dependency> <groupId>org.apache.zookeeper</groupId> <artifactId>zookeeper</artifactId> <version>3.5.6</version> <exclusions> <exclusion> <artifactId>slf4j-log4j12</artifactId> <groupId>org.slf4j</groupId> </exclusion> </exclusions> </dependency>
在项目中引入zookeeper时,如果要使用log4j2日志,需要去除slf4j-log4j12,否则log.info信息无法打印
标签:info,zookeeper,slf4j,去除,org,log4j12 From: https://www.cnblogs.com/geo-mzy/p/16956006.html