From f028e47fe78a197e542a4924659b0742d3eff66d Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Wed, 23 Sep 2015 16:49:17 +0100 Subject: [PATCH] Refactor test for changes in eureka-first --- eureka-first/src/main/java/demo/EurekaFirstApplication.java | 2 ++ eureka-first/src/main/resources/application.yml | 3 --- eureka-first/src/main/resources/bootstrap.yml | 2 ++ 3 files changed, 4 insertions(+), 3 deletions(-) delete mode 100644 eureka-first/src/main/resources/application.yml diff --git a/eureka-first/src/main/java/demo/EurekaFirstApplication.java b/eureka-first/src/main/java/demo/EurekaFirstApplication.java index 21641a7..7cf9aba 100644 --- a/eureka-first/src/main/java/demo/EurekaFirstApplication.java +++ b/eureka-first/src/main/java/demo/EurekaFirstApplication.java @@ -2,8 +2,10 @@ package demo; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.client.discovery.EnableDiscoveryClient; @SpringBootApplication +@EnableDiscoveryClient public class EurekaFirstApplication { public static void main(String[] args) { diff --git a/eureka-first/src/main/resources/application.yml b/eureka-first/src/main/resources/application.yml deleted file mode 100644 index e71e64b..0000000 --- a/eureka-first/src/main/resources/application.yml +++ /dev/null @@ -1,3 +0,0 @@ -server: - port: 9001 - \ No newline at end of file diff --git a/eureka-first/src/main/resources/bootstrap.yml b/eureka-first/src/main/resources/bootstrap.yml index 348e6a0..1fdf50b 100644 --- a/eureka-first/src/main/resources/bootstrap.yml +++ b/eureka-first/src/main/resources/bootstrap.yml @@ -1,3 +1,5 @@ +server: + port: 9001 spring: application: name: eurekafirst