0
点赞
收藏
分享

微信扫一扫

FLink.运行日志SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.错误

janedaring 2022-02-26 阅读 95

在使用scala是没有问题,但是今天用Flink的时候报这个错误。

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

在官网上查了之后发现缺少类路径的jar包,拿在pom文件添加之后就OK了

        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
            <version>1.7.5</version>
            <scope>compile</scope>
        </dependency>

这是我的LOG4J位置 ,你自己的可以看自己的.m2仓库,用鼠标指向org.slf4j就知道在哪了

举报

相关推荐

0 条评论