diff --git a/pom.xml b/pom.xml index 02b518cc2..88598252d 100644 --- a/pom.xml +++ b/pom.xml @@ -6,12 +6,12 @@ org.springframework.boot spring-boot-starter-parent - 2.3.6.RELEASE + 2.4.2 org.springframework.samples spring-petclinic-microservices - 2.3.6 + 2.4.2 ${project.artifactId} pom @@ -29,8 +29,8 @@ 1.8 3.11.1 - 2.3.6.RELEASE - Hoxton.SR9 + 2.4.2 + 2020.0.1 2.22.0 diff --git a/spring-petclinic-admin-server/pom.xml b/spring-petclinic-admin-server/pom.xml index 5094e7914..4ccdc17af 100644 --- a/spring-petclinic-admin-server/pom.xml +++ b/spring-petclinic-admin-server/pom.xml @@ -12,11 +12,11 @@ org.springframework.samples spring-petclinic-microservices - 2.3.6 + 2.4.2 - 2.2.2 + 2.3.1 9090 ${basedir}/../docker @@ -27,6 +27,10 @@ org.springframework.boot spring-boot-starter + + org.springframework.cloud + spring-cloud-starter-bootstrap + org.springframework.cloud spring-cloud-starter-config diff --git a/spring-petclinic-admin-server/src/main/resources/bootstrap.yml b/spring-petclinic-admin-server/src/main/resources/bootstrap.yml index acd744935..d1ec2a854 100644 --- a/spring-petclinic-admin-server/src/main/resources/bootstrap.yml +++ b/spring-petclinic-admin-server/src/main/resources/bootstrap.yml @@ -6,7 +6,9 @@ spring: name: admin-server --- spring: - profiles: docker + config: + activate: + on-profile: docker cloud: config: uri: http://config-server:8888 diff --git a/spring-petclinic-api-gateway/pom.xml b/spring-petclinic-api-gateway/pom.xml index 41e67b212..0e9126ad2 100644 --- a/spring-petclinic-api-gateway/pom.xml +++ b/spring-petclinic-api-gateway/pom.xml @@ -11,7 +11,7 @@ org.springframework.samples spring-petclinic-microservices - 2.3.6 + 2.4.2 @@ -53,6 +53,10 @@ org.springframework.cloud spring-cloud-sleuth-zipkin + + org.springframework.cloud + spring-cloud-starter-bootstrap + org.springframework.cloud spring-cloud-starter-circuitbreaker-reactor-resilience4j diff --git a/spring-petclinic-api-gateway/src/main/resources/bootstrap.yml b/spring-petclinic-api-gateway/src/main/resources/bootstrap.yml index f4cc782f9..9aef7487e 100644 --- a/spring-petclinic-api-gateway/src/main/resources/bootstrap.yml +++ b/spring-petclinic-api-gateway/src/main/resources/bootstrap.yml @@ -6,7 +6,9 @@ spring: name: api-gateway --- spring: - profiles: docker + config: + activate: + on-profile: docker cloud: config: uri: http://config-server:8888 diff --git a/spring-petclinic-config-server/pom.xml b/spring-petclinic-config-server/pom.xml index 0c28aee55..737caf812 100644 --- a/spring-petclinic-config-server/pom.xml +++ b/spring-petclinic-config-server/pom.xml @@ -11,7 +11,7 @@ org.springframework.samples spring-petclinic-microservices - 2.3.6 + 2.4.2 @@ -32,6 +32,10 @@ org.springframework.cloud spring-cloud-config-server + + org.springframework.cloud + spring-cloud-starter-bootstrap + diff --git a/spring-petclinic-config-server/src/test/resources/application.yml b/spring-petclinic-config-server/src/test/resources/application.yml new file mode 100644 index 000000000..b4fb9c744 --- /dev/null +++ b/spring-petclinic-config-server/src/test/resources/application.yml @@ -0,0 +1,6 @@ +spring: + cloud: + config: + server: + git: + uri: https://github.com/spring-petclinic/spring-petclinic-microservices-config diff --git a/spring-petclinic-customers-service/pom.xml b/spring-petclinic-customers-service/pom.xml index ac198f123..de578ac6d 100644 --- a/spring-petclinic-customers-service/pom.xml +++ b/spring-petclinic-customers-service/pom.xml @@ -11,7 +11,7 @@ org.springframework.samples spring-petclinic-microservices - 2.3.6 + 2.4.2 @@ -41,6 +41,10 @@ + + org.springframework.cloud + spring-cloud-starter-bootstrap + org.springframework.cloud spring-cloud-starter-config diff --git a/spring-petclinic-customers-service/src/main/resources/bootstrap.yml b/spring-petclinic-customers-service/src/main/resources/bootstrap.yml index c0f6dca61..58281a444 100644 --- a/spring-petclinic-customers-service/src/main/resources/bootstrap.yml +++ b/spring-petclinic-customers-service/src/main/resources/bootstrap.yml @@ -6,7 +6,9 @@ spring: name: customers-service --- spring: - profiles: docker + config: + activate: + on-profile: docker cloud: config: uri: http://config-server:8888 diff --git a/spring-petclinic-discovery-server/pom.xml b/spring-petclinic-discovery-server/pom.xml index 2efabd77f..a6ca05cc1 100644 --- a/spring-petclinic-discovery-server/pom.xml +++ b/spring-petclinic-discovery-server/pom.xml @@ -11,7 +11,7 @@ org.springframework.samples spring-petclinic-microservices - 2.3.6 + 2.4.2 @@ -30,23 +30,15 @@ org.springframework.cloud - spring-cloud-starter-config + spring-cloud-starter-bootstrap org.springframework.cloud - spring-cloud-starter-netflix-eureka-server - - - - - org.junit.jupiter - junit-jupiter-api - test + spring-cloud-starter-config - org.junit.jupiter - junit-jupiter-engine - test + org.springframework.cloud + spring-cloud-starter-netflix-eureka-server diff --git a/spring-petclinic-discovery-server/src/main/java/org/springframework/samples/petclinic/discovery/DiscoveryServerApplication.java b/spring-petclinic-discovery-server/src/main/java/org/springframework/samples/petclinic/discovery/DiscoveryServerApplication.java index 59e2c3396..6c2d281ec 100644 --- a/spring-petclinic-discovery-server/src/main/java/org/springframework/samples/petclinic/discovery/DiscoveryServerApplication.java +++ b/spring-petclinic-discovery-server/src/main/java/org/springframework/samples/petclinic/discovery/DiscoveryServerApplication.java @@ -22,8 +22,8 @@ /** * @author Maciej Szarlinski */ -@EnableEurekaServer @SpringBootApplication +@EnableEurekaServer public class DiscoveryServerApplication { public static void main(String[] args) { diff --git a/spring-petclinic-discovery-server/src/main/resources/bootstrap.yml b/spring-petclinic-discovery-server/src/main/resources/bootstrap.yml index 9c07ca22b..eba87c89e 100644 --- a/spring-petclinic-discovery-server/src/main/resources/bootstrap.yml +++ b/spring-petclinic-discovery-server/src/main/resources/bootstrap.yml @@ -6,7 +6,9 @@ spring: name: discovery-server --- spring: - profiles: docker + config: + activate: + on-profile: docker cloud: config: uri: http://config-server:8888 diff --git a/spring-petclinic-vets-service/pom.xml b/spring-petclinic-vets-service/pom.xml index 7b14f16f5..570452cb3 100644 --- a/spring-petclinic-vets-service/pom.xml +++ b/spring-petclinic-vets-service/pom.xml @@ -11,7 +11,7 @@ org.springframework.samples spring-petclinic-microservices - 2.3.6 + 2.4.2 @@ -53,6 +53,10 @@ org.springframework.cloud spring-cloud-sleuth-zipkin + + org.springframework.cloud + spring-cloud-starter-bootstrap + org.springframework.cloud spring-cloud-starter-config diff --git a/spring-petclinic-vets-service/src/main/resources/bootstrap.yml b/spring-petclinic-vets-service/src/main/resources/bootstrap.yml index 59c6dd258..bc2f683e5 100644 --- a/spring-petclinic-vets-service/src/main/resources/bootstrap.yml +++ b/spring-petclinic-vets-service/src/main/resources/bootstrap.yml @@ -6,7 +6,9 @@ spring: name: vets-service --- spring: - profiles: docker + config: + activate: + on-profile: docker cloud: config: uri: http://config-server:8888 diff --git a/spring-petclinic-visits-service/pom.xml b/spring-petclinic-visits-service/pom.xml index e7c495858..670acbe68 100644 --- a/spring-petclinic-visits-service/pom.xml +++ b/spring-petclinic-visits-service/pom.xml @@ -11,7 +11,7 @@ org.springframework.samples spring-petclinic-microservices - 2.3.6 + 2.4.2 @@ -40,6 +40,10 @@ + + org.springframework.cloud + spring-cloud-starter-bootstrap + org.springframework.cloud spring-cloud-starter-config diff --git a/spring-petclinic-visits-service/src/main/resources/bootstrap.yml b/spring-petclinic-visits-service/src/main/resources/bootstrap.yml index 1ddd133b1..92f4fcae3 100644 --- a/spring-petclinic-visits-service/src/main/resources/bootstrap.yml +++ b/spring-petclinic-visits-service/src/main/resources/bootstrap.yml @@ -6,7 +6,9 @@ spring: name: visits-service --- spring: - profiles: docker + config: + activate: + on-profile: docker cloud: config: uri: http://config-server:8888