在我的项目中,我使用的是 Hibernate3(取决于 slf4j-1.6)和 RESTeasy(取决于 slf4j-1.5)。两者都不兼容并在运行时出错。
SLF4J: The requested version 1.5.8 by your slf4j binding is not compatible with [1.6]
SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details.
Exception in thread "main" java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/String;
at org.slf4j.impl.SimpleLogger.formatAndLog(SimpleLogger.java:222)
at org.slf4j.impl.SimpleLogger.info(SimpleLogger.java:258)
at org.hibernate.annotations.common.Version.<clinit>(Version.java:37)
有什么想法可以解决这个冲突吗?