The springboot-cloud-config-server microservice is a Spring Boot application that acts as a centralized configuration server. It provides configuration properties to other microservices in the system, which can be fetched from a Git repository.
spring-cloud-config-server: Enables the Spring Cloud Config Server functionality.spring-cloud-starter-netflix-eureka-client: Allows the config server to register with Eureka for service discovery.spring-boot-starter-test: Provides dependencies for testing.
spring:
application:
name: CONFIG-SERVER
cloud:
config:
server:
git:
uri: https://github.com/ChintaHari/springboot-cloud-config-server
server:
port: 9196
# Enable as Eureka Client
eureka:
client:
register-with-eureka: true
fetch-registry: true
serviceUrl:
defaultZone: http://localhost:8761/eureka/
instance:
hostname: localhostspring.application.name: Defines the application name asCONFIG-SERVER.spring.cloud.config.server.git.uri: Specifies the URI of the Git repository where configuration files are stored.server.port: Sets the server port to9196.eureka.client: Configures the Eureka client settings to register and fetch the registry.eureka.instance.hostname: Sets the hostname for the Eureka instance.
spring:
cloud:
config:
uri: http://localhost:9196spring.cloud.config.uri: Specifies the URI of the Config Server, allowing other microservices to fetch configurations from it.
The springboot-cloud-config-server does not expose any custom endpoints. It provides configuration data to other services through its default configuration server endpoints.
- Config Server Port:
9196