解决SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”

最近一段时间每次运行Flink demo时maven项目总会弹出如下的内容,虽然不影响结果的输出,但是对于强迫症的我还是决定解决这个问题。

在这里插入图片描述
第一行翻译过来也就是不能加载org.slf4j.impl.StaticLoggerBinder这个类,于是去maven官方网站上搜索了一下org.slf4j,我选择的是1.7.2版本的slf4j-api,亲测有效,再次输出结果时便没有这个错误的提示,特此记录一下。

<dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-api</artifactId>
    <version>1.7.2</version>
</dependency>

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_44080445/article/details/113277307