2.Microservices and Spring Security-Eureka server Configuration

Опубликовано: 22 Октябрь 2024
на канале: Pavan Tricks
1,653
15

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