Skip to content

Commit

Permalink
add apollo
Browse files Browse the repository at this point in the history
  • Loading branch information
xubinux committed Jul 8, 2017
1 parent 7b1a020 commit 328ee59
Show file tree
Hide file tree
Showing 34 changed files with 91 additions and 13 deletions.
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
<fast.version>1.24</fast.version>
<springfox.swagger2.version>2.6.1</springfox.swagger2.version>
<lombok.version>1.16.16</lombok.version>
<apollo.version>0.8.0</apollo.version>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -463,6 +464,11 @@
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.ctrip.framework.apollo</groupId>
<artifactId>apollo-client</artifactId>
<version>${apollo.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down
5 changes: 5 additions & 0 deletions xbin-store-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -220,5 +220,10 @@
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
<!-- apollo -->
<dependency>
<groupId>com.ctrip.framework.apollo</groupId>
<artifactId>apollo-client</artifactId>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
@@ -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")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
app.id=xbin-store-service-admin
Original file line number Diff line number Diff line change
@@ -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")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
app.id=xbin-store-service-cart
Original file line number Diff line number Diff line change
@@ -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")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
app.id=xbin-store-service-item
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
app.id=xbin-store-service-notify
Original file line number Diff line number Diff line change
@@ -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")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
app.id=xbin-store-service-order
Original file line number Diff line number Diff line change
@@ -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")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
app.id=xbin-store-service-portal
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
app.id=xbin-store-service-redis
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
app.id=xbin-store-service-search
Original file line number Diff line number Diff line change
@@ -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")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
app.id=xbin-store-service-sso
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
app.id=xbin-store-web-admin
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
app.id=xbin-store-web-cart
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
app.id=xbin-store-web-item
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
app.id=xbin-store-web-order
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
app.id=xbin-store-web-portal
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
app.id=xbin-store-web-search
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
app.id=xbin-store-web-sso

0 comments on commit 328ee59

Please sign in to comment.