EurekaServiceApplication
@EnableEurekaClient @SpringBootApplication public class EurekaServiceApplication { public static void main(String[] args) { SpringApplication.run(EurekaServiceApplication.class); } }
application.yml
application.yml eureka: client: serviceUrl: defaultZone: http://localhost:8761/eureka/