Skip to content

bygui86/admin-eureka-zuul-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample project using Eureka, Zuul, Spring Cloud Config and Spring Boot Admin

Sub-projects


Run

  1. Start Eureka server

    cd <PROJECT_ROOT_FOLDER>/eureka-server
    mvnw clean spring-boot:run
    
  2. Start Admin server

    cd <PROJECT_ROOT_FOLDER>/admin-server
    mvnw clean spring-boot:run
    
  3. Start Cloud Config server

    cd <PROJECT_ROOT_FOLDER>/config-server
    mvnw clean spring-boot:run
    
  4. Start Gateway

    cd <PROJECT_ROOT_FOLDER>/gateway
    mvnw clean spring-boot:run
    
  5. Start resource service

    cd <PROJECT_ROOT_FOLDER>/resource-service
    mvnw clean spring-boot:run
    
  6. Test if everything works

    curl http://localhost:8080/resource-service/hello
    

Refresh external property

  1. Update property file

    cd <PROJECT_ROOT_FOLDER>/config-server/src/main/resources/
    nano resource-service.properties
    ...
    	comment
    		external.property = hello world!
    	uncomment
    		external.property = hello everybody!
    ...
    
  2. Restart Cloud Config server

    cd <PROJECT_ROOT_FOLDER>/config-server
    mvnw clean spring-boot:run
    
  3. Refresh the resource service (WARN: directly not through the gateway)

    curl -X POST http://localhost:9081/actuator/refresh
    

TODOs

  • discover config server using eureka

Links