spring cloud2.0构建分布式企业微服务云架构-搭建commonservice跟项目

我们先从搭建通用服务开始,首先沟通maven创建commonservice的根项目,里面有一些基础的配置信息,如:版本控制、打包、编译、依赖、通用包配置、模块等,我直接将代码帖进来,希望大家能够理解的更到位:(企业架构源码可以加求球:三五三六二四七二五九)

1.   
3.   4.0.0 
4.   com.honghu.cloud 
5.   commonservice 
6.   2.0 
7.   pom 

9.    
10.   commonservice-eureka 
11.   commonservice-config 
12.   commonservice-gateway 
13.   commonservice-oauth 
14.   commonservice-monitor 
15.   commonservice-turbine 
16.   commonservice-admin 
17.   commonservice-log 
18.   commonservice-file 
19.   commonservice-notification 
20.   commonservice-sequence 
21.    

23.    
24.   org.springframework.boot 
25.   spring-boot-starter-parent 
26.   2.0.4.RELEASE 
27.    

29.    
30.   Finchley.RELEASE 
31.   1.3.2 
32.   0.9.0 
33.   1.2.47 
34.   4.1 
35.   2.0.2 
36.   2.8.0 
37.   2.8.2 
38.   3.2.8 
39.   1.1.0 
40.   6.2.3 
41.   2.3.3.RELEASE 
42.   springboot 
43.    

45.    
46.    
47.   org.springframework.boot 
48.   spring-boot-starter-actuator 
49.    
50.    
51.   org.springframework.boot 
52.   spring-boot-starter-test 
53.   test 
54.    
55.    
56.   org.projectlombok 
57.   lombok 
58.    
59.    
60.   com.alibaba 
61.   fastjson 
62.   ${fastjson.version} 
63.    
64.    
65.   org.apache.commons 
66.   commons-lang3 
67.    
68.    
69.   org.apache.commons 
70.   commons-collections4 
71.   ${commons-collections} 
72.    
73.    

75.    
76.    
77.    
78.   org.springframework.cloud 
79.   spring-cloud-dependencies 
80.   ${spring-cloud.version} 
81.   pom 
82.   import 
83.    
84.    
85.   org.mybatis.spring.boot 
86.   mybatis-spring-boot-starter 
87.   ${mybatis.version} 
88.    
89.    
90.   io.jsonwebtoken 
91.   jjwt 
92.   ${jwt.version} 
93.    
94.    
95.    

97.   

基础配置:groupId、artifactId、version(2.0版本)

1.  com.honghu.cloud 
2.  commonservice 
3.  2.0 
4.  pom 

子项目模块:

1.   
2.   commonservice-eureka 
3.   commonservice-config 
4.   commonservice-gateway 
5.   commonservice-oauth 
6.   commonservice-monitor 
7.   commonservice-turbine 
8.   commonservice-user 
9.   commonservice-admin 
10.   commonservice-log 
11.   commonservice-file 
12.   commonservice-notification 
13.   commonservice-sequence 
14.   

commonservice-eureka(服务注册中心)

commonservice-config(服务配置中心)

commonservice-gateway(服务网关)

commonservice-monitor(服务监控)

commonservice-turbine(集群监控)

commonservice-notification(系统通知)

commonservice-oauth(服务权限)

commonservice-sequence(自动生成分布式ID)

commonservice-file(文件服务)

commonservice-log(日志服务)

commonservice-admin(通用管理集成平台)

Spring Boot2.0版本

1.   
2.   org.springframework.boot 
3.   spring-boot-starter-parent 
4.   2.0.4.RELEASE 
5.    

通用版本号配置

1.   
2.   Finchley.RELEASE 
3.   1.3.2 
4.   0.9.0 
5.   1.2.47 
6.   4.1 
7.   2.0.2 
8.   2.8.0 
9.   2.8.2 
10.   3.2.8 
11.   1.1.0 
12.   6.2.3 
13.   2.3.3.RELEASE 
14.   springboot 
15.   

你可能感兴趣的:(spring,java,小程序)