diff --git a/spring-boot-admin/src/main/java/org/example/teahouse/sba/SbaApplication.java b/spring-boot-admin/src/main/java/org/example/teahouse/sba/SbaApplication.java index 66810a2..033eec1 100644 --- a/spring-boot-admin/src/main/java/org/example/teahouse/sba/SbaApplication.java +++ b/spring-boot-admin/src/main/java/org/example/teahouse/sba/SbaApplication.java @@ -6,12 +6,10 @@ import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup; -import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.context.annotation.Import; import org.springframework.context.annotation.PropertySource; @EnableAdminServer -@EnableDiscoveryClient @SpringBootApplication @PropertySource("classpath:build.properties") @Import({CommonActuatorConfig.class}) diff --git a/tea-service/src/main/java/org/example/teahouse/tea/TeaServiceApplication.java b/tea-service/src/main/java/org/example/teahouse/tea/TeaServiceApplication.java index aab9de1..20d4207 100644 --- a/tea-service/src/main/java/org/example/teahouse/tea/TeaServiceApplication.java +++ b/tea-service/src/main/java/org/example/teahouse/tea/TeaServiceApplication.java @@ -3,13 +3,11 @@ import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup; -import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.cloud.openfeign.EnableFeignClients; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.PropertySource; @EnableFeignClients -@EnableDiscoveryClient @SpringBootApplication @PropertySource("classpath:build.properties") @ComponentScan(basePackages = { "org.example.teahouse" }) diff --git a/tealeaf-service/src/main/java/org/example/teahouse/tealeaf/TealeafServiceApplication.java b/tealeaf-service/src/main/java/org/example/teahouse/tealeaf/TealeafServiceApplication.java index 14701ed..cf78926 100644 --- a/tealeaf-service/src/main/java/org/example/teahouse/tealeaf/TealeafServiceApplication.java +++ b/tealeaf-service/src/main/java/org/example/teahouse/tealeaf/TealeafServiceApplication.java @@ -3,11 +3,9 @@ import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup; -import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.PropertySource; -@EnableDiscoveryClient @SpringBootApplication @PropertySource("classpath:build.properties") @ComponentScan(basePackages = { "org.example.teahouse" }) diff --git a/water-service/src/main/java/org/example/teahouse/water/WaterServiceApplication.java b/water-service/src/main/java/org/example/teahouse/water/WaterServiceApplication.java index 822152f..f694daa 100644 --- a/water-service/src/main/java/org/example/teahouse/water/WaterServiceApplication.java +++ b/water-service/src/main/java/org/example/teahouse/water/WaterServiceApplication.java @@ -3,11 +3,9 @@ import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup; -import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.PropertySource; -@EnableDiscoveryClient @SpringBootApplication @PropertySource("classpath:build.properties") @ComponentScan(basePackages = { "org.example.teahouse" })