MicroServices with Spring
From My Limbic Wiki
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
Server
- Pom.xml
- Dependencies:
- spring-cloud-starter-netflix-eureka-server
- spring-boot : web, test & devtools
- Dependencies:
- src/main/resources
- application.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
- src/main/java
- com.microservices.server
- EurekaServerApplication.java
- com.microservices.server
@SpringBootApplication @EnableEurekaServer // Enable eureka server