Registry / cloud / spring-cloud-commons

spring-cloud-commons

JSON →
library5.0.1javamavenunverified

Spring Cloud Commons provides common abstractions for Spring Cloud services, including service discovery, load balancing, and circuit breakers.

<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-commons</artifactId> <version>5.0.1</version> </dependency>
INSTALL
IMPORT
SIG · SPRING-CLOUD-COMMO
S
spring-cloud-commons
cloudjavav5.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DiscoveryClient
org.springframework.cloud.client.discovery.DiscoveryClient

Injects a DiscoveryClient and exposes a REST endpoint listing discovered services.

import org.springframework.cloud.client.discovery.DiscoveryClient; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class ExampleController { @Autowired private DiscoveryClient discoveryClient; @GetMapping("/services") public Object getServices() { return discoveryClient.getServices(); } }
Debug
Known issues
breakingSpring Cloud Commons 4.x requires Spring Boot 3.x and Java 17. Older versions use Netflix Eureka; newer versions may use different implementations.
fix
Ensure your Spring Boot version is compatible and choose the appropriate service discovery implementation (e.g., Eureka, Consul).
affects: >=4.0.0
Upgrade
Version history
5.0.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
Resources
spring-cloud-commons — mvn dependency:get spring-cloud-commons · libregistry