zookeeper去除slf4j-log4j12

 <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信息无法打印


posted on 2022-12-06 17:39  geo-mzy  阅读(168)  评论(0)    收藏  举报

导航