Microservices architecture design using Zuul and Eureka - part 4
VIDEO:
eureka-server-module
Module  
 | 
Used For 
 | 
Module Type 
 | 
Port 
 | 
Registered Name 
 | 
Dependencies added 
 | 
eureka-server-module 
 | 
Service Registry(Eureka Server) 
 | 
SpringBoot Module 
 | 
9002 
 | 
eureka-service 
 | 
Web, Eureka Server 
 | 
application.properties
server.port=9002
spring.application.name=eureka-service
#Eureka server
eureka.client.register-with-eureka=false
eureka.client.fetch-registry=false
logging.level.com.netflix.eureka=OFF
logging.level.com.netflix.discovery=OFF
EurekaServerModuleApplication.java
package com.sachin4java.eurekaservermodule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
@EnableEurekaServer
@SpringBootApplication
public class EurekaServerModuleApplication {
 public static void main(String[] args) {
  SpringApplication.run(EurekaServerModuleApplication.class, args);
 }
}
Module eureka-server-module --> https://github.com/ranesaci/eureka-server-module.git
No comments:
Post a Comment