An intro into the Spring Cloud ecosystem
The project contains six projects:
centralized-config
- a repository which keeps the configurations for the other projects and servicesconfig-server
- a Spring Cloud Config Server applicationdiscovery-server
- a Spring Cloud Eureka Server applicationgateway-server
- a Spring Cloud Zuul Server applicationproduct-service
- a products REST applicationorder-service
- an orders REST application
In order to easily run all the projects from a single run config:
- Install the
Multirun
IntelliJ IDEA plugin (Plugins -> Install JetBrains plugin -> Search forMultirun
) - Create a run configuration and add the projects in the following order:
- ConfigServerApplication
- DiscoveryServerApplication
- GatewayApplication
- ProductServiceApplication
- OrderServiceApplication
- Set a delay of 5 seconds between their launch, to make sure that the depending services have been started