Spring Cloud (Edgware.release) uses Eureka as service management, and restful is prone to this error when jersey is used, because Spring-cloud-starter-eureka currently uses jersey 1.1, and Spring-boot-starter-jersey with the Jersey 2.x version, Jersey 1.x and Jersey 2.x in the injection mode and so on different.
Considering that spring boot is also based on dependency management and Autoconfiguration, only dependent management is automatically processed by spring boot, and Spring-boot-starter-jersey is using the Jersey 2.x version, So the Spring-cloud-starter-eureka Jsr311-api is not introduced as a dependency, and the Jersey 2.x version introduced by spring boot is resolved by this title error:
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId> spring-cloud-starter-eureka</artifactid>
<exclusions>
<exclusion>
<groupid >javax.ws.rs</groupId>
<artifactId>jsr311-api</artifactId>
</exclusion>
</exclusions>
</dependency>