@SpringBootApplication @EnableEurekaServer public class Discovery { public static void main(String[] args) { SpringApplication.run(Discovery.class, args); } }
Registering with Eureka
@SpringBootApplication @EnableDiscoveryClient public class Application{ public static void main(String[] args) { SpringApplication.run(Application.class, args); } }
application.properties
eureka.client.serviceUrl.defaultZone: http://server:8761/eureka/