Open lemos1235 opened 4 years ago
貌似是缺少 loadbalance 依赖
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-loadbalancer</artifactId>
</dependency>
貌似是缺少 loadbalance 依赖
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-loadbalancer</artifactId> </dependency>
遇到同样问题,添加依赖报同样错误
同样遇到这个问题, 用的版本是 `
` openfegin是2.2.0版本
同样遇到这个问题, 用的版本是 `
io.seata seata-spring-boot-starter 1.3.0 ` openfegin是2.2.0版本
刚刚成功启动了, 把openfegin换成了2.2.1版本成功启动了
seata1.4.1 与 spring-cloud-starter-openfeign 3.0.1 存在同样兼容问题; Caused by: java.lang.NoClassDefFoundError: org/springframework/cloud/openfeign/ribbon/CachingSpringLoadBalancerFactory at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.getDeclaredMethods(Class.java:1975) at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:463) ... 37 common frames omitted Caused by: java.lang.ClassNotFoundException: org.springframework.cloud.openfeign.ribbon.CachingSpringLoadBalancerFactory at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 41 common frames omitted
openfegin-core修改了版本能启动但是 服务间调用 会找不到服务。。openfegin 3.x根本启动不了。。。
你这个问题解决了吗?如果解决了 能不能麻烦告诉我一下?
我也遇到了相同的问题,需要升级下SpringCloud SpringBoot版本与SpringCloudAlibaba对应。 SpringCloud[Hoxton.SR1]、SpringBoot[2.2.5.RELEASE]、SpringCloudAlibaba[2.2.1.RELEASE]、Seata[1.3.0]
spring boot 项目可以通过引入以下依赖来解决。
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-seata</artifactId>
<version>2021.1</version>
</dependency>
引楼上依赖,能正常启动
我是spring-cloud-starter-alibaba-seata
版本写错了,删掉指定版本用默认的<version>2021.1</version>
就正常了
Ⅰ. Issue Description
feignClient 无法创建,导致项目启动失败。
Ⅱ. Describe what happened
If there is an exception, please attach the exception trace:
Ⅲ. Describe what you expected to happen
Ⅳ. How to reproduce it (as minimally and precisely as possible)
Ⅴ. Anything else we need to know?
Ⅵ. Environment: