Skip to content
Advertisement

Tag: netflix-eureka

Maven: Classpath dependencies and starters?

in this tutorial https://usha-dewasi.medium.com/service-registry-using-spring-cloud-netflix-eureka-cba573c693b under “Installing Eureka on Server Side” there is the instruction to Add org.springframework.boot:spring-cloud-starter-eureka-server on your classpath. Now as a beginner with maven and spring I don’t know what is meant both with the term starter, nor do I know how to “add,” what is obviously a groupId and an artifactId on “your classpath.” I just found

How to mock the discoveryClient?

I’m working with Eureka and I have a Method that uses the DiscoveryClient to obtain the instances of a service and the call this service and retrieve some information like this: It works, but now I want to make a JUnit test for the method and as I’m not going to have the Eureka working in the JUnit test environment,

Advertisement