Today , we are going to see Spring Boot Eureka Server Configuration in STS :
Step 1: Create Spring Starter Project in Spring Tool Suite :
Step 2: Do Java,Maven Configuration as below :
Step 3 : select Dependencies Eureka Discovery Client and Eureka Server
server.port=8001
spring.application.name=discoveryservice
eureka.client.registerWithEureka=false
eureka.client.fetchRegistry=false
eureka.client.serviceUrl.defaultZone= http://localhost:8001/eureka
Step 7: Run main class as spring boot app :its default value is true , fetchRegistry Indicates whether this client should fetch eureka registry information from eureka server.
3>eureka.client.serviceUrl.defaultZone :
Map of availability zone to list of fully qualified URLs to communicate with eureka server. Each value can be a single URL or a comma separated list of alternative locations. Typically the eureka server URLs carry protocol,host,port,context and version information if any.
Example: https://ec2-256-156-243-129.compute-1.azaws.com:7001/eureka/ .
Today we learned , How to start Eureka server in Spring Boot.