The gateway application is generated in a similar fashion to the monolithic application, except for configurations related to Zuul proxy, Eureka Client, and Hystrix:
@SpringBootApplication
@EnableConfigurationProperties({LiquibaseProperties.class, ApplicationProperties.class})
@EnableDiscoveryClient
@EnableZuulProxy
public class StoreApp implements InitializingBean {
...
}
We have selected the JHipster registry for our registry service. This will be a standalone registry server that other microservice applications and gateways will register:
- @EnableDiscoveryClient is added to Spring Boot's main class, which will enable Netflix Discovery Client. The microservice applications and gateways need to register themselves to the registry service. It uses Spring Cloud's discovery client abstraction to interrogate its own host and port and then adds them to...