MicroServices with Spring
From My Limbic Wiki
Revision as of 21:59, 20 September 2019 by Fukakai (talk | contribs) (→Spécificités dans une Arborescence Spring)
Vulgarisation
Spécificités dans une Arborescence Spring
Eureka
Is the registration service, all services will connect to the same adress: http://localhost:9000 for example
Fichiers | Server | Zuul | Image | Gallery | Common | Auth |
---|---|---|---|---|---|---|
Pom.xml |
spring-cloud-starter-netflix-eureka-server spring-boot : web, test & devtools |
|
|
|
|
|
Properties |
# Name spring.application.name=eureka-server # Default Port server.port=8761 # Eureka server may not be a Client eureka.client.register-with-eureka=false eureka.client.fetch-registry=false |
//coming |
//coming |
//coming |
//coming |
//coming |
Main |
@SpringBootApplication @EnableEurekaServer // Enable eureka server |