Thursday, July 12, 2018

Spring Boot and Netflix: Eureka Server

let's start with an empty Eureka Server:

run it, and hit:


We have some basic working examples here at

first we run the Eureka Server:

git clone
cd sample-eureka
gradle build
java -jar ./build/libs/sample-eureka.jar

then a sample service

git clone
cd sample-recommendations
gradle build
java -jar build/libs/sample-recommendations.jar

download latest gradle from, unzip it to E:/apps and make sure /e/apps/gradle-4.8/bin/gradle can be executed (I use gitBash shell)

in build.gradle, change apply plugin: 'spring-boot' into apply plugin: 'org.springframework.boot'

to build, simply run "gradle build"

all the dowloaded jars are in %HOME%\.gradle\caches\modules-2\files-2.1 (the equivalent of %HOME%/.m2/repository )

Recommendations runs at

curl http://localhost:8001/api/recommendations/jschneider

and Eureka Server at http://localhost:9000/

No comments: