-
Notifications
You must be signed in to change notification settings - Fork 2
Create Eureka Server
Piyush Chaudhari edited this page Aug 19, 2018
·
5 revisions
Create spring boot eureka-server project.
Add below dependencies in your project.
compile('org.springframework.cloud:spring-cloud-starter-netflix-eureka-server')
for eureka server
Set below property on application.properties
spring.application.name=eureka-server
server.port=8761
eureka.client.register-with-eureka=false
eureka.client.fetch-registry=false
eureka.client.serviceUrl.defaultZone=http://localhost:${server.port}/eureka/
Now go to the eureka-server project main class EurekaServerApplication.java and add @EnableEurekaServer annotation
Run eureka-server. It will be running on 8761 port.
Please use below URL to show information about eureka-server.