diff --git a/Chapter9-1-1/compute-service/pom.xml b/Chapter9-1-1/compute-service/pom.xml index d9b03af..04ef83d 100644 --- a/Chapter9-1-1/compute-service/pom.xml +++ b/Chapter9-1-1/compute-service/pom.xml @@ -12,9 +12,10 @@ Spring Cloud project - org.springframework.cloud - spring-cloud-starter-parent - 1.0.0.RELEASE + org.springframework.boot + spring-boot-starter-parent + 1.3.5.RELEASE + @@ -24,8 +25,8 @@ - org.springframework.boot - spring-boot-starter + org.springframework.cloud + spring-cloud-starter-eureka @@ -34,23 +35,20 @@ test - - org.springframework.boot - spring-boot-starter-web - - - - org.springframework.cloud - spring-cloud-starter - - - - org.springframework.cloud - spring-cloud-starter-eureka - - - + + + + + org.springframework.cloud + spring-cloud-dependencies + Brixton.RELEASE + pom + import + + + + diff --git a/Chapter9-1-1/compute-service/src/main/java/com/didispace/ComputeServiceApplication.java b/Chapter9-1-1/compute-service/src/main/java/com/didispace/ComputeServiceApplication.java index 52aeb49..b0a0058 100755 --- a/Chapter9-1-1/compute-service/src/main/java/com/didispace/ComputeServiceApplication.java +++ b/Chapter9-1-1/compute-service/src/main/java/com/didispace/ComputeServiceApplication.java @@ -4,8 +4,8 @@ import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; -@SpringBootApplication @EnableDiscoveryClient +@SpringBootApplication public class ComputeServiceApplication { public static void main(String[] args) { diff --git a/Chapter9-1-1/compute-service/src/main/resources/application.properties b/Chapter9-1-1/compute-service/src/main/resources/application.properties new file mode 100644 index 0000000..c14fe52 --- /dev/null +++ b/Chapter9-1-1/compute-service/src/main/resources/application.properties @@ -0,0 +1,6 @@ +spring.application.name=compute-service + +server.port=2222 + +eureka.client.serviceUrl.defaultZone=http://localhost:1111/eureka/ + diff --git a/Chapter9-1-1/compute-service/src/main/resources/application.yml b/Chapter9-1-1/compute-service/src/main/resources/application.yml deleted file mode 100755 index 5abaf2a..0000000 --- a/Chapter9-1-1/compute-service/src/main/resources/application.yml +++ /dev/null @@ -1,15 +0,0 @@ -# Spring properties -spring: - application: - name: compute-service - -# HTTP Server -server: - port: 2222 # HTTP (Tomcat) port - -# Discovery Server Access -eureka: - client: - serviceUrl: - defaultZone: http://localhost:1111/eureka/ -