Java.lang.ClassNotFoundException: com.google.common.reflect.TypeToken
程序员文章站
2022-07-14 08:52:04
...
导致错误的原因是因为使用@FeignClient注解的前提需要增加依赖
引入
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>18.0</version>
</dependency>
紧接着又报java.lang.ClassNotFoundException: com.netflix.config.CachedDynamicIntPropert
引入
<dependency>
<groupId>com.netflix.archaius</groupId>
<artifactId>archaius-core</artifactId>
<version>0.7.6</version>
</dependency>
推荐阅读
-
Caused by: java.lang.ClassNotFoundException: org.junit.platform.launcher.TestExecutionListener
-
Android <java.lang.ClassNotFoundException:Didn‘t find class ‘XXX‘ on path:DexPathList> 解决
-
idea启动项目报错Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
-
java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory 异常错误
-
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
-
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
-
eclipse中java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory的解决办法
-
Java.lang.ClassNotFoundException: com.google.common.reflect.TypeToken
-
SpringCloud使用Feign出现java.lang.ClassNotFoundException: org.springframework.cloud.client.loadbalancer.LoadBalancedRetryFactory异常
-
java.lang.ClassNotFoundException: oracle.security.jps.wls.listeners.JpsApplicati