【发布时间】:2019-12-19 12:24:45
【问题描述】:
我需要更新gradle中JDBC Redshift驱动的版本,看来1.3X有以下问题:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:~/.gradle/caches/modules-2/files-2.1/com.amazon.redshift/redshift-jdbc42/1.2.37.1061/daad21f8637b6ccd2b86307a4f17e1e215df7365/redshift-jdbc42-1.2.37.1061.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:~/.gradle/caches/modules-2/files-2.1/ch.qos.logback/logback-classic/1.2.3/7c4f3c474fb2c041d8028740440937705ebb473a/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
我可以在全局范围内排除 ch.qos.logback/logback-classic,但我想知道是否有更好的解决方法,因为我宁愿禁用来自 com.amazon.redshift/redshift-jdbc42 的意外重复记录器
【问题讨论】:
-
你应该向亚马逊投诉:
org.slf4j.impl.StaticLoggerBinder的实现不属于 JDBC 驱动程序实现。 -
那是肯定的,但想知道在他们开始遵循约定之前是否有某种解决方法
标签: java gradle jdbc amazon-redshift