Zuul 网关转发 Exception in thread “main” java.lang.NoClassDefFoundError: okhttp3/ConnectionPool with Selenium and Java

Zuul 网关转发请求时报错

Exception in thread "main" java.lang.NoClassDefFoundError: okhttp3/ConnectionPool | Caused by: java.lang.ClassNotFoundException: okhttp3.ConnectionPool

解决 添加如下jar包

please check of this jars files in your project libraries:

okhttp-3.10.0.jar & okio1.14.1.jar

may be solve using this jar files your problem :

java.lang.NoClassDefFoundError: okhttp3/ConnectionPool


<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
</dependency>
<dependency>
<groupId>com.squareup.okio</groupId>
<artifactId>okio</artifactId>
<version>1.11.0</version>
</dependency>


compile 'com.squareup.okhttp3:okhttp:3.6.0' compile 'com.squareup.okio:okio:1.11.0'
posted @ 2019-12-06 15:41  jack-jin  阅读(1280)  评论(0)    收藏  举报