in this video, I show you, how to set up the Eureka server.
Main class :-
@SpringBootApplication
@EnableEurekaServer
Application.property
server.port=8761
spring.application.name=discoveryservice
eureka.client.register-with-eureka=false
eureka.client.fetch-registry=false
eureka.instance.prefer-ip-address=true
eureka.client.serviceUrl.defaultzone=http://localhost:8761/eureka
pom.xml :-
spring-cloud-starter-netflix-eureka-server