webmagic
webmagic copied to clipboard
ThreadSafe相关
项目里用的0.7.3版本,然后看源码@ThreadSafe找不到,并发的时候,会有什么影响吗。。。。

不存在的话,编译还能通过?
webmagic-0.7.3 所依赖的 httpcore 是4.4.4哦,不是你说的 4.4.13。
[INFO] us.codecraft:webmagic-core:jar:0.7.3
[INFO] +- org.apache.httpcomponents:httpclient:jar:4.5.2:compile
[INFO] | +- org.apache.httpcomponents:httpcore:jar:4.4.4:compile
webmagic-0.7.3所依赖的httpcore是4.4.4哦,不是你说的4.4.13。[INFO] us.codecraft:webmagic-core:jar:0.7.3 [INFO] +- org.apache.httpcomponents:httpclient:jar:4.5.2:compile [INFO] | +- org.apache.httpcomponents:httpcore:jar:4.4.4:compile
仔细看了下,是的,引用的是4.4.4
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.4.4</version>
</dependency>
被其他项目的jar包给覆盖掉了,自己在pom里重新引用一下就好了,谢谢sutra提醒。