Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have created Spring cloud config server to include all configurations of spring cloud config clients for my application, the problem is that my spring cloud config clients can not obtain the configurations from the spring cloud config server even if the server is started I don't know where I'm doing below are my code snapshots your suggestions will be much appreciated.

What I have tried:

Spring Cloud Config Server Main Method

public class DemoConfigServerApplication {

    public static void main(String[] args) {, args);


Configuration for Department service in Spring Cloud Config Server (

server.port = 8081
eureka.client.service-url.defaultZone = http://localhost:8761/eureka/
management.tracing.sampling.probability = 1.0

Department Service (Spring Cloud Config Client) Main Method

public class DemoDepartmentServiceApplication {

    public static void main(String[] args) {, args);

} in department service = department-service
spring.config.import = configserver:http://localhost:8088

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900