| Code Block | ||||||
|---|---|---|---|---|---|---|
| ||||||
dependencies {
compile('org.springframework.cloud:spring-cloud-starter-netflix-eureka-client') // 3. To use Eureka client
} |
| Code Block | ||||||
|---|---|---|---|---|---|---|
| ||||||
@EnableEurekaClient
@SpringBootApplication
public class EurekaServiceApplication {
public static void main(String[] args) {
SpringApplication.run(EurekaServiceApplication.class);
}
} |
...