From 328ee59198d11c0e03b01f95a7e350af84112367 Mon Sep 17 00:00:00 2001 From: xubinux Date: Sat, 8 Jul 2017 22:40:09 +0800 Subject: [PATCH] add apollo --- pom.xml | 6 ++++++ xbin-store-common/pom.xml | 5 +++++ .../java/cn/binux/XbinStoreServiceAdminApplication.java | 4 ++++ .../src/main/resources/META-INF/app.properties | 1 + .../main/java/cn/binux/XbinStoreServiceSSOApplication.java | 5 ++++- .../src/main/resources/META-INF/app.properties | 1 + .../main/java/cn/binux/XbinStoreServiceItemApplication.java | 5 ++++- .../src/main/resources/META-INF/app.properties | 1 + .../java/cn/binux/XbinStoreServiceNotifyApplication.java | 5 ++++- .../src/main/resources/META-INF/app.properties | 1 + .../java/cn/binux/XbinStoreServiceOrderApplication.java | 5 ++++- .../src/main/resources/META-INF/app.properties | 1 + .../java/cn/binux/XbinStoreServicePortalApplication.java | 5 ++++- .../src/main/resources/META-INF/app.properties | 1 + .../java/cn/binux/XbinStoreServiceRedisApplication.java | 4 ++++ .../src/main/resources/META-INF/app.properties | 1 + .../java/cn/binux/XbinStoreServiceSearchApplication.java | 5 ++++- .../src/main/resources/META-INF/app.properties | 1 + .../main/java/cn/binux/XbinStoreServiceSSOApplication.java | 5 ++++- .../src/main/resources/META-INF/app.properties | 1 + .../main/java/cn/binux/XbinStoreWebAdminApplication.java | 4 ++++ .../src/main/resources/META-INF/app.properties | 1 + .../src/main/java/cn/binux/XbinStoreWebCartApplication.java | 5 ++++- .../src/main/resources/META-INF/app.properties | 1 + .../src/main/java/cn/binux/XbinStoreWebItemApplication.java | 5 ++++- .../src/main/resources/META-INF/app.properties | 1 + .../main/java/cn/binux/XbinStoreWebOrderApplication.java | 5 ++++- .../src/main/resources/META-INF/app.properties | 1 + .../main/java/cn/binux/XbinStoreWebPortalApplication.java | 5 ++++- .../src/main/resources/META-INF/app.properties | 1 + .../main/java/cn/binux/XbinStoreWebSearchApplication.java | 5 ++++- .../src/main/resources/META-INF/app.properties | 1 + .../src/main/java/cn/binux/XbinStoreWebSSOApplication.java | 5 ++++- .../src/main/resources/META-INF/app.properties | 1 + 34 files changed, 91 insertions(+), 13 deletions(-) create mode 100644 xbin-store-service-admin/src/main/resources/META-INF/app.properties create mode 100644 xbin-store-service-cart/src/main/resources/META-INF/app.properties create mode 100644 xbin-store-service-item/src/main/resources/META-INF/app.properties create mode 100644 xbin-store-service-notify/src/main/resources/META-INF/app.properties create mode 100644 xbin-store-service-order/src/main/resources/META-INF/app.properties create mode 100644 xbin-store-service-portal/src/main/resources/META-INF/app.properties create mode 100644 xbin-store-service-redis/src/main/resources/META-INF/app.properties create mode 100644 xbin-store-service-search/src/main/resources/META-INF/app.properties create mode 100644 xbin-store-service-sso/src/main/resources/META-INF/app.properties create mode 100644 xbin-store-web-admin/src/main/resources/META-INF/app.properties create mode 100644 xbin-store-web-cart/src/main/resources/META-INF/app.properties create mode 100644 xbin-store-web-item/src/main/resources/META-INF/app.properties create mode 100644 xbin-store-web-order/src/main/resources/META-INF/app.properties create mode 100644 xbin-store-web-portal/src/main/resources/META-INF/app.properties create mode 100644 xbin-store-web-search/src/main/resources/META-INF/app.properties create mode 100644 xbin-store-web-sso/src/main/resources/META-INF/app.properties diff --git a/pom.xml b/pom.xml index b7caf3f..6f21caf 100644 --- a/pom.xml +++ b/pom.xml @@ -150,6 +150,7 @@ 1.24 2.6.1 1.16.16 + 0.8.0 @@ -463,6 +464,11 @@ ${lombok.version} provided + + com.ctrip.framework.apollo + apollo-client + ${apollo.version} + diff --git a/xbin-store-common/pom.xml b/xbin-store-common/pom.xml index 2fbeb9b..b591428 100644 --- a/xbin-store-common/pom.xml +++ b/xbin-store-common/pom.xml @@ -220,5 +220,10 @@ commons-lang 2.6 + + + com.ctrip.framework.apollo + apollo-client + diff --git a/xbin-store-service-admin/src/main/java/cn/binux/XbinStoreServiceAdminApplication.java b/xbin-store-service-admin/src/main/java/cn/binux/XbinStoreServiceAdminApplication.java index f282442..f9a3fe4 100644 --- a/xbin-store-service-admin/src/main/java/cn/binux/XbinStoreServiceAdminApplication.java +++ b/xbin-store-service-admin/src/main/java/cn/binux/XbinStoreServiceAdminApplication.java @@ -1,11 +1,15 @@ package cn.binux; import com.alibaba.dubbo.container.Main; +import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.Configuration; import org.springframework.transaction.annotation.EnableTransactionManagement; +@Configuration +@EnableApolloConfig @SpringBootApplication @EnableTransactionManagement @MapperScan(basePackages = "cn.binux.mapper") diff --git a/xbin-store-service-admin/src/main/resources/META-INF/app.properties b/xbin-store-service-admin/src/main/resources/META-INF/app.properties new file mode 100644 index 0000000..75e37b6 --- /dev/null +++ b/xbin-store-service-admin/src/main/resources/META-INF/app.properties @@ -0,0 +1 @@ +app.id=xbin-store-service-admin \ No newline at end of file diff --git a/xbin-store-service-cart/src/main/java/cn/binux/XbinStoreServiceSSOApplication.java b/xbin-store-service-cart/src/main/java/cn/binux/XbinStoreServiceSSOApplication.java index 438c5a0..42503c8 100644 --- a/xbin-store-service-cart/src/main/java/cn/binux/XbinStoreServiceSSOApplication.java +++ b/xbin-store-service-cart/src/main/java/cn/binux/XbinStoreServiceSSOApplication.java @@ -1,11 +1,14 @@ package cn.binux; -import com.alibaba.dubbo.container.Main; +import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.Configuration; import org.springframework.transaction.annotation.EnableTransactionManagement; +@Configuration +@EnableApolloConfig @SpringBootApplication @EnableTransactionManagement @MapperScan(basePackages = "cn.binux.mapper") diff --git a/xbin-store-service-cart/src/main/resources/META-INF/app.properties b/xbin-store-service-cart/src/main/resources/META-INF/app.properties new file mode 100644 index 0000000..69fcaa3 --- /dev/null +++ b/xbin-store-service-cart/src/main/resources/META-INF/app.properties @@ -0,0 +1 @@ +app.id=xbin-store-service-cart \ No newline at end of file diff --git a/xbin-store-service-item/src/main/java/cn/binux/XbinStoreServiceItemApplication.java b/xbin-store-service-item/src/main/java/cn/binux/XbinStoreServiceItemApplication.java index 09a5d2a..874329b 100644 --- a/xbin-store-service-item/src/main/java/cn/binux/XbinStoreServiceItemApplication.java +++ b/xbin-store-service-item/src/main/java/cn/binux/XbinStoreServiceItemApplication.java @@ -1,11 +1,14 @@ package cn.binux; -import com.alibaba.dubbo.container.Main; +import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.Configuration; import org.springframework.transaction.annotation.EnableTransactionManagement; +@Configuration +@EnableApolloConfig @SpringBootApplication @EnableTransactionManagement @MapperScan(basePackages = "cn.binux.mapper") diff --git a/xbin-store-service-item/src/main/resources/META-INF/app.properties b/xbin-store-service-item/src/main/resources/META-INF/app.properties new file mode 100644 index 0000000..2a8b033 --- /dev/null +++ b/xbin-store-service-item/src/main/resources/META-INF/app.properties @@ -0,0 +1 @@ +app.id=xbin-store-service-item \ No newline at end of file diff --git a/xbin-store-service-notify/src/main/java/cn/binux/XbinStoreServiceNotifyApplication.java b/xbin-store-service-notify/src/main/java/cn/binux/XbinStoreServiceNotifyApplication.java index ebc5166..95b7f4f 100644 --- a/xbin-store-service-notify/src/main/java/cn/binux/XbinStoreServiceNotifyApplication.java +++ b/xbin-store-service-notify/src/main/java/cn/binux/XbinStoreServiceNotifyApplication.java @@ -1,9 +1,12 @@ package cn.binux; -import com.alibaba.dubbo.container.Main; +import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.Configuration; +@Configuration +@EnableApolloConfig @SpringBootApplication public class XbinStoreServiceNotifyApplication { diff --git a/xbin-store-service-notify/src/main/resources/META-INF/app.properties b/xbin-store-service-notify/src/main/resources/META-INF/app.properties new file mode 100644 index 0000000..b5d40d0 --- /dev/null +++ b/xbin-store-service-notify/src/main/resources/META-INF/app.properties @@ -0,0 +1 @@ +app.id=xbin-store-service-notify \ No newline at end of file diff --git a/xbin-store-service-order/src/main/java/cn/binux/XbinStoreServiceOrderApplication.java b/xbin-store-service-order/src/main/java/cn/binux/XbinStoreServiceOrderApplication.java index 60155af..2eaaccf 100644 --- a/xbin-store-service-order/src/main/java/cn/binux/XbinStoreServiceOrderApplication.java +++ b/xbin-store-service-order/src/main/java/cn/binux/XbinStoreServiceOrderApplication.java @@ -1,11 +1,14 @@ package cn.binux; -import com.alibaba.dubbo.container.Main; +import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.Configuration; import org.springframework.transaction.annotation.EnableTransactionManagement; +@Configuration +@EnableApolloConfig @SpringBootApplication @EnableTransactionManagement @MapperScan(basePackages = "cn.binux.mapper") diff --git a/xbin-store-service-order/src/main/resources/META-INF/app.properties b/xbin-store-service-order/src/main/resources/META-INF/app.properties new file mode 100644 index 0000000..9f779d8 --- /dev/null +++ b/xbin-store-service-order/src/main/resources/META-INF/app.properties @@ -0,0 +1 @@ +app.id=xbin-store-service-order \ No newline at end of file diff --git a/xbin-store-service-portal/src/main/java/cn/binux/XbinStoreServicePortalApplication.java b/xbin-store-service-portal/src/main/java/cn/binux/XbinStoreServicePortalApplication.java index 3176a0d..7d9f478 100644 --- a/xbin-store-service-portal/src/main/java/cn/binux/XbinStoreServicePortalApplication.java +++ b/xbin-store-service-portal/src/main/java/cn/binux/XbinStoreServicePortalApplication.java @@ -1,11 +1,14 @@ package cn.binux; -import com.alibaba.dubbo.container.Main; +import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.Configuration; import org.springframework.transaction.annotation.EnableTransactionManagement; +@Configuration +@EnableApolloConfig @SpringBootApplication @EnableTransactionManagement @MapperScan(basePackages = "cn.binux.mapper") diff --git a/xbin-store-service-portal/src/main/resources/META-INF/app.properties b/xbin-store-service-portal/src/main/resources/META-INF/app.properties new file mode 100644 index 0000000..24abf6c --- /dev/null +++ b/xbin-store-service-portal/src/main/resources/META-INF/app.properties @@ -0,0 +1 @@ +app.id=xbin-store-service-portal \ No newline at end of file diff --git a/xbin-store-service-redis/src/main/java/cn/binux/XbinStoreServiceRedisApplication.java b/xbin-store-service-redis/src/main/java/cn/binux/XbinStoreServiceRedisApplication.java index 408ad44..75adb03 100644 --- a/xbin-store-service-redis/src/main/java/cn/binux/XbinStoreServiceRedisApplication.java +++ b/xbin-store-service-redis/src/main/java/cn/binux/XbinStoreServiceRedisApplication.java @@ -1,9 +1,13 @@ package cn.binux; import com.alibaba.dubbo.container.Main; +import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.Configuration; +@Configuration +@EnableApolloConfig @SpringBootApplication public class XbinStoreServiceRedisApplication { diff --git a/xbin-store-service-redis/src/main/resources/META-INF/app.properties b/xbin-store-service-redis/src/main/resources/META-INF/app.properties new file mode 100644 index 0000000..cdf3871 --- /dev/null +++ b/xbin-store-service-redis/src/main/resources/META-INF/app.properties @@ -0,0 +1 @@ +app.id=xbin-store-service-redis \ No newline at end of file diff --git a/xbin-store-service-search/src/main/java/cn/binux/XbinStoreServiceSearchApplication.java b/xbin-store-service-search/src/main/java/cn/binux/XbinStoreServiceSearchApplication.java index be978ac..f15aa1d 100644 --- a/xbin-store-service-search/src/main/java/cn/binux/XbinStoreServiceSearchApplication.java +++ b/xbin-store-service-search/src/main/java/cn/binux/XbinStoreServiceSearchApplication.java @@ -1,10 +1,13 @@ package cn.binux; -import com.alibaba.dubbo.container.Main; +import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.Configuration; +@Configuration +@EnableApolloConfig @SpringBootApplication @MapperScan(basePackages = "cn.binux.search.mapper") public class XbinStoreServiceSearchApplication { diff --git a/xbin-store-service-search/src/main/resources/META-INF/app.properties b/xbin-store-service-search/src/main/resources/META-INF/app.properties new file mode 100644 index 0000000..8b3c3c9 --- /dev/null +++ b/xbin-store-service-search/src/main/resources/META-INF/app.properties @@ -0,0 +1 @@ +app.id=xbin-store-service-search \ No newline at end of file diff --git a/xbin-store-service-sso/src/main/java/cn/binux/XbinStoreServiceSSOApplication.java b/xbin-store-service-sso/src/main/java/cn/binux/XbinStoreServiceSSOApplication.java index 438c5a0..42503c8 100644 --- a/xbin-store-service-sso/src/main/java/cn/binux/XbinStoreServiceSSOApplication.java +++ b/xbin-store-service-sso/src/main/java/cn/binux/XbinStoreServiceSSOApplication.java @@ -1,11 +1,14 @@ package cn.binux; -import com.alibaba.dubbo.container.Main; +import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.Configuration; import org.springframework.transaction.annotation.EnableTransactionManagement; +@Configuration +@EnableApolloConfig @SpringBootApplication @EnableTransactionManagement @MapperScan(basePackages = "cn.binux.mapper") diff --git a/xbin-store-service-sso/src/main/resources/META-INF/app.properties b/xbin-store-service-sso/src/main/resources/META-INF/app.properties new file mode 100644 index 0000000..85aac68 --- /dev/null +++ b/xbin-store-service-sso/src/main/resources/META-INF/app.properties @@ -0,0 +1 @@ +app.id=xbin-store-service-sso \ No newline at end of file diff --git a/xbin-store-web-admin/src/main/java/cn/binux/XbinStoreWebAdminApplication.java b/xbin-store-web-admin/src/main/java/cn/binux/XbinStoreWebAdminApplication.java index e5fa2c6..a074d4f 100644 --- a/xbin-store-web-admin/src/main/java/cn/binux/XbinStoreWebAdminApplication.java +++ b/xbin-store-web-admin/src/main/java/cn/binux/XbinStoreWebAdminApplication.java @@ -1,9 +1,13 @@ package cn.binux; +import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.Configuration; +@Configuration +@EnableApolloConfig @SpringBootApplication //@EnableWebMvc public class XbinStoreWebAdminApplication { diff --git a/xbin-store-web-admin/src/main/resources/META-INF/app.properties b/xbin-store-web-admin/src/main/resources/META-INF/app.properties new file mode 100644 index 0000000..6467ef3 --- /dev/null +++ b/xbin-store-web-admin/src/main/resources/META-INF/app.properties @@ -0,0 +1 @@ +app.id=xbin-store-web-admin \ No newline at end of file diff --git a/xbin-store-web-cart/src/main/java/cn/binux/XbinStoreWebCartApplication.java b/xbin-store-web-cart/src/main/java/cn/binux/XbinStoreWebCartApplication.java index 121ad1f..1fa7c0d 100644 --- a/xbin-store-web-cart/src/main/java/cn/binux/XbinStoreWebCartApplication.java +++ b/xbin-store-web-cart/src/main/java/cn/binux/XbinStoreWebCartApplication.java @@ -1,9 +1,12 @@ package cn.binux; +import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.Configuration; - +@Configuration +@EnableApolloConfig @SpringBootApplication public class XbinStoreWebCartApplication { diff --git a/xbin-store-web-cart/src/main/resources/META-INF/app.properties b/xbin-store-web-cart/src/main/resources/META-INF/app.properties new file mode 100644 index 0000000..025ae0e --- /dev/null +++ b/xbin-store-web-cart/src/main/resources/META-INF/app.properties @@ -0,0 +1 @@ +app.id=xbin-store-web-cart \ No newline at end of file diff --git a/xbin-store-web-item/src/main/java/cn/binux/XbinStoreWebItemApplication.java b/xbin-store-web-item/src/main/java/cn/binux/XbinStoreWebItemApplication.java index 1da98fc..01f55ce 100644 --- a/xbin-store-web-item/src/main/java/cn/binux/XbinStoreWebItemApplication.java +++ b/xbin-store-web-item/src/main/java/cn/binux/XbinStoreWebItemApplication.java @@ -1,9 +1,12 @@ package cn.binux; +import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.Configuration; - +@Configuration +@EnableApolloConfig @SpringBootApplication public class XbinStoreWebItemApplication { diff --git a/xbin-store-web-item/src/main/resources/META-INF/app.properties b/xbin-store-web-item/src/main/resources/META-INF/app.properties new file mode 100644 index 0000000..299dbbf --- /dev/null +++ b/xbin-store-web-item/src/main/resources/META-INF/app.properties @@ -0,0 +1 @@ +app.id=xbin-store-web-item \ No newline at end of file diff --git a/xbin-store-web-order/src/main/java/cn/binux/XbinStoreWebOrderApplication.java b/xbin-store-web-order/src/main/java/cn/binux/XbinStoreWebOrderApplication.java index f7f3237..300e70d 100644 --- a/xbin-store-web-order/src/main/java/cn/binux/XbinStoreWebOrderApplication.java +++ b/xbin-store-web-order/src/main/java/cn/binux/XbinStoreWebOrderApplication.java @@ -1,9 +1,12 @@ package cn.binux; +import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.Configuration; - +@Configuration +@EnableApolloConfig @SpringBootApplication public class XbinStoreWebOrderApplication { diff --git a/xbin-store-web-order/src/main/resources/META-INF/app.properties b/xbin-store-web-order/src/main/resources/META-INF/app.properties new file mode 100644 index 0000000..b4513a6 --- /dev/null +++ b/xbin-store-web-order/src/main/resources/META-INF/app.properties @@ -0,0 +1 @@ +app.id=xbin-store-web-order \ No newline at end of file diff --git a/xbin-store-web-portal/src/main/java/cn/binux/XbinStoreWebPortalApplication.java b/xbin-store-web-portal/src/main/java/cn/binux/XbinStoreWebPortalApplication.java index e715a3b..f993c43 100644 --- a/xbin-store-web-portal/src/main/java/cn/binux/XbinStoreWebPortalApplication.java +++ b/xbin-store-web-portal/src/main/java/cn/binux/XbinStoreWebPortalApplication.java @@ -1,9 +1,12 @@ package cn.binux; +import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.Configuration; - +@Configuration +@EnableApolloConfig @SpringBootApplication public class XbinStoreWebPortalApplication { diff --git a/xbin-store-web-portal/src/main/resources/META-INF/app.properties b/xbin-store-web-portal/src/main/resources/META-INF/app.properties new file mode 100644 index 0000000..da37026 --- /dev/null +++ b/xbin-store-web-portal/src/main/resources/META-INF/app.properties @@ -0,0 +1 @@ +app.id=xbin-store-web-portal \ No newline at end of file diff --git a/xbin-store-web-search/src/main/java/cn/binux/XbinStoreWebSearchApplication.java b/xbin-store-web-search/src/main/java/cn/binux/XbinStoreWebSearchApplication.java index ca6889b..227435f 100644 --- a/xbin-store-web-search/src/main/java/cn/binux/XbinStoreWebSearchApplication.java +++ b/xbin-store-web-search/src/main/java/cn/binux/XbinStoreWebSearchApplication.java @@ -1,9 +1,12 @@ package cn.binux; +import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.Configuration; - +@Configuration +@EnableApolloConfig @SpringBootApplication public class XbinStoreWebSearchApplication { diff --git a/xbin-store-web-search/src/main/resources/META-INF/app.properties b/xbin-store-web-search/src/main/resources/META-INF/app.properties new file mode 100644 index 0000000..f7d9a76 --- /dev/null +++ b/xbin-store-web-search/src/main/resources/META-INF/app.properties @@ -0,0 +1 @@ +app.id=xbin-store-web-search \ No newline at end of file diff --git a/xbin-store-web-sso/src/main/java/cn/binux/XbinStoreWebSSOApplication.java b/xbin-store-web-sso/src/main/java/cn/binux/XbinStoreWebSSOApplication.java index 0857b29..5d0d889 100644 --- a/xbin-store-web-sso/src/main/java/cn/binux/XbinStoreWebSSOApplication.java +++ b/xbin-store-web-sso/src/main/java/cn/binux/XbinStoreWebSSOApplication.java @@ -1,9 +1,12 @@ package cn.binux; +import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.Configuration; - +@Configuration +@EnableApolloConfig @SpringBootApplication public class XbinStoreWebSSOApplication { diff --git a/xbin-store-web-sso/src/main/resources/META-INF/app.properties b/xbin-store-web-sso/src/main/resources/META-INF/app.properties new file mode 100644 index 0000000..01523a1 --- /dev/null +++ b/xbin-store-web-sso/src/main/resources/META-INF/app.properties @@ -0,0 +1 @@ +app.id=xbin-store-web-sso \ No newline at end of file