Question
After configuring load balancing, start springboot and report an error
reason
The version difference of jar
I first used ribbon and Eureka. When I added them, I didn’t notice that the following two versions were abandoned
<!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-starter-ribbon -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-ribbon</artifactId>
<version>1.4.7.RELEASE</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-starter-eureka -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-eureka</artifactId>
<version>1.4.7.RELEASE</version>
</dependency>
Solution:
The dependency of replacing the Eureka registry module is
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
<version>3.0.4</version>
</dependency>
The dependency of replacing the service provider and consumer modules is
the ribbon required by the consumer module has been built-in compatible with the latest version of Eureka
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
<version>3.0.4</version>
</dependency>
Read More:
- spring cloud 2020 gateway Error 503 [How to Solve]
- Spring cloud remote connect Nacos error [How to Solve]
- Spring Cloud Hoxton.SR9 gateway and reactor-netty 0.9.0.RELEASE is Incompatible [How to Solve]
- [Solved] Spring cloud zuul Error: com.netflix.zuul.exception.ZuulException
- [Solved] Failed to introspect Class [org.springframework.cloud.netflix.hystrix.HystrixCircuitBreakerConfigura
- How to Solve Spring integrate Seata startup error
- Spring cloud Netflix hystrix/acutor/hystrix.stream Error ut005023
- [Solved] debug error: cloud netflix. eureka. EurekaDiscoveryClientConfiguration (IDEA package normally)
- Hystrix fuse of spring cloud system
- [Solved] Openfegn Remote Call Error: java.lang.NullPointerException: null
- [Solved] spring boot integrated PageHelper Error
- Eclipse relies on spring boot configuration processor, and there is no prompt for writing properties and YML
- [Solved] Failed to start bean ‘eurekaAutoServiceRegistration‘; nested exception is java.lang.NullPointerExce
- Solve the use of declaration transactions in spring java.lang.NoClassDefFoundError: org/aspectj/util/PartialOrder$PartialComparable
- [Solved] The Bean Validation API is on the classpath but no implementation could be found
- Spring Security Upgrade to Version 5.5.7, 5.6.4 or Above to Startup Error (Version incompatibility)
- [Solved] ‘build.plugins.plugin.version‘ for org.springframework.boot:spring-boot-maven-plugin is missing.
- [Solved] JPA query data error: Page 1 of 0 containing UNKNOWN instances
- [Solved] org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘xxx‘
- [Solved] Spring jdbctemplate Error: ‘Java. SQL. Driver’ for property ‘driver’: no