webmagic icon indicating copy to clipboard operation
webmagic copied to clipboard

Failed to load class "org.slf4j.impl.StaticLoggerBinder".

Open songsh opened this issue 2 years ago • 5 comments

请问,这是 org.slf4j exclude 导致的? 要怎么处理?

songsh avatar Jul 22 '22 13:07 songsh

我添加了一个依赖就好了

<dependency>
  <groupId>org.slf4j</groupId>
  <artifactId>slf4j-simple</artifactId>
  <version>1.7.25</version>
  <scope>compile</scope>
</dependency>

Oh-Shmily avatar Aug 11 '22 06:08 Oh-Shmily

您的邮件我已收到,祝你天天开心! 

LyuXiaobu avatar Aug 11 '22 06:08 LyuXiaobu

Any idea how to solve this? I tried everything, but it still doesn't work

alexandrujecan avatar Aug 31 '22 19:08 alexandrujecan

Any idea how to solve this? I tried everything, but it still doesn't work

Try this https://github.com/code4craft/webmagic/issues/1074#issuecomment-1211585545 add the dependency to the pom.xml of that that project.

sutra avatar Sep 01 '22 00:09 sutra

It worked, but not by adding the dependency to pom.xml, but by adding the slf4j-simple.jar directly to the classpath

alexandrujecan avatar Sep 01 '22 21:09 alexandrujecan