File tree Expand file tree Collapse file tree 37 files changed +81
-100
lines changed
microservice-consumer-movie-ribbon-hystrix
microservice-discovery-eureka
microservice-gateway-zuul
microservice-hystrix-dashboard
microservice-hystrix-turbine
microservice-provider-user
microservice-discovery-eureka-ha
microservice-consumer-movie-ribbon-hystrix
microservice-discovery-eureka-ha
microservice-gateway-zuul
microservice-hystrix-turbine
microservice-provider-user
microservice-consumer-movie-ribbon-hystrix
microservice-discovery-eureka
microservice-gateway-zuul
microservice-hystrix-dashboard
microservice-hystrix-turbine
microservice-provider-user Expand file tree Collapse file tree 37 files changed +81
-100
lines changed Original file line number Diff line number Diff line change 1
- # 《Spring Cloud与Docker微服务架构实战》Docker章节(12-14章)配套代码
1
+ # 《Spring Cloud与Docker微服务架构实战 第二版 》Docker章节(12-14章)配套代码
2
2
3
- - 本Repo是《Spring Cloud与Docker微服务架构实战 - 周立 》Docker章节(12-14章)的配套代码
4
- - 所有Docker Compose采用Version 2 file format编写。
3
+ - 本Repo是《Spring Cloud与Docker微服务架构实战 ** 第二版 ** 》Docker章节(12-14章)的配套代码, ** 第一版 ** 的配套源码详见Camden分支。
4
+ - 所有Docker Compose采用Version 3 file format编写。
5
5
- 1-11章配套代码详见:< http://git.oschina.net/itmuch/spring-cloud-docker-microservice-book-code >
6
6
7
7
8
8
9
9
10
-
11
-
12
- ## 购书链接
13
-
14
- * 京东购书链接
15
-
16
- ![ ] ( ad/jd-购书链接.png )
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
10
## 交流
26
11
27
12
- QQ群:731548893,欢迎加入
28
13
- 个人博客:[ http://www.itmuch.com ] ( http://www.itmuch.com )
29
- - Spring For Al社区:< http://www.spring4all.com >
30
- - 微信公众号:往下翻^_ ^
14
+ - 微信:[ ![ img] ( https://gitee.com/itmuch/spring-cloud-docker-microservice-book-code/raw/master/wx.jpg )] ( https://gitee.com/itmuch/spring-cloud-docker-microservice-book-code/raw/master/wx.jpg )
31
15
32
16
33
- ** 敬请关注 **
17
+ ** 持续更新Spring Cloud、Docker相关知识 ** ,敬请关注!!
34
18
35
19
36
20
65
49
66
50
67
51
68
- ## 全书目录
69
-
70
- ![ 目录] ( http://git.oschina.net/itmuch/spring-cloud-docker-microservice-book-code/raw/master/ad/catalog.png )
Original file line number Diff line number Diff line change 1
- version : ' 2 '
1
+ version : ' 3 '
2
2
services :
3
3
discovery :
4
4
image : itmuch/microservice-discovery-eureka:0.0.1-SNAPSHOT
Original file line number Diff line number Diff line change 1
- version : ' 2 ' # 表示该docker-compose.yml文件使用的是Version 2 file format
1
+ version : ' 3 ' # 表示该docker-compose.yml文件使用的是Version 2 file format
2
2
services : # Version 2 file format的固定写法,为project定义服务。
3
3
microservice-discovery-eureka : # 指定服务名称
4
4
image : itmuch/microservice-discovery-eureka:0.0.1-SNAPSHOT # 指定服务所使用的镜像
Original file line number Diff line number Diff line change 11
11
<parent >
12
12
<groupId >org.springframework.boot</groupId >
13
13
<artifactId >spring-boot-starter-parent</artifactId >
14
- <version >1.4.2 .RELEASE</version >
14
+ <version >1.5.9 .RELEASE</version >
15
15
</parent >
16
16
17
17
<properties >
31
31
32
32
<dependency >
33
33
<groupId >org.springframework.cloud</groupId >
34
- <artifactId >spring-cloud-starter-eureka</artifactId >
34
+ <artifactId >spring-cloud-starter-netflix- eureka-client </artifactId >
35
35
</dependency >
36
36
37
37
<dependency >
38
38
<groupId >org.springframework.cloud</groupId >
39
- <artifactId >spring-cloud-starter-hystrix</artifactId >
39
+ <artifactId >spring-cloud-starter-netflix- hystrix</artifactId >
40
40
</dependency >
41
41
</dependencies >
42
42
46
46
<dependency >
47
47
<groupId >org.springframework.cloud</groupId >
48
48
<artifactId >spring-cloud-dependencies</artifactId >
49
- <version >Camden.SR2 </version >
49
+ <version >Edgware.RELEASE </version >
50
50
<type >pom</type >
51
51
<scope >import</scope >
52
52
</dependency >
Original file line number Diff line number Diff line change 11
11
<parent >
12
12
<groupId >org.springframework.boot</groupId >
13
13
<artifactId >spring-boot-starter-parent</artifactId >
14
- <version >1.4.2 .RELEASE</version >
14
+ <version >1.5.9 .RELEASE</version >
15
15
</parent >
16
16
17
17
<properties >
22
22
<dependencies >
23
23
<dependency >
24
24
<groupId >org.springframework.cloud</groupId >
25
- <artifactId >spring-cloud-starter-eureka-server</artifactId >
25
+ <artifactId >spring-cloud-starter-netflix- eureka-server</artifactId >
26
26
</dependency >
27
27
</dependencies >
28
28
32
32
<dependency >
33
33
<groupId >org.springframework.cloud</groupId >
34
34
<artifactId >spring-cloud-dependencies</artifactId >
35
- <version >Camden.SR2 </version >
35
+ <version >Edgware.RELEASE </version >
36
36
<type >pom</type >
37
37
<scope >import</scope >
38
38
</dependency >
Original file line number Diff line number Diff line change 22
22
<dependencies >
23
23
<dependency >
24
24
<groupId >org.springframework.cloud</groupId >
25
- <artifactId >spring-cloud-starter-eureka-server</artifactId >
25
+ <artifactId >spring-cloud-starter-netflix- eureka-server</artifactId >
26
26
</dependency >
27
27
</dependencies >
28
28
Original file line number Diff line number Diff line change 22
22
<dependencies >
23
23
<dependency >
24
24
<groupId >org.springframework.cloud</groupId >
25
- <artifactId >spring-cloud-starter-eureka-server</artifactId >
25
+ <artifactId >spring-cloud-starter-netflix- eureka-server</artifactId >
26
26
</dependency >
27
27
</dependencies >
28
28
Original file line number Diff line number Diff line change 22
22
<dependencies >
23
23
<dependency >
24
24
<groupId >org.springframework.cloud</groupId >
25
- <artifactId >spring-cloud-starter-eureka-server</artifactId >
25
+ <artifactId >spring-cloud-starter-netflix- eureka-server</artifactId >
26
26
</dependency >
27
27
</dependencies >
28
28
Original file line number Diff line number Diff line change 22
22
<dependencies >
23
23
<dependency >
24
24
<groupId >org.springframework.cloud</groupId >
25
- <artifactId >spring-cloud-starter-eureka-server</artifactId >
25
+ <artifactId >spring-cloud-starter-netflix- eureka-server</artifactId >
26
26
</dependency >
27
27
</dependencies >
28
28
Original file line number Diff line number Diff line change 22
22
<dependencies >
23
23
<dependency >
24
24
<groupId >org.springframework.cloud</groupId >
25
- <artifactId >spring-cloud-starter-eureka-server</artifactId >
25
+ <artifactId >spring-cloud-starter-netflix- eureka-server</artifactId >
26
26
</dependency >
27
27
</dependencies >
28
28
Original file line number Diff line number Diff line change 11
11
<parent >
12
12
<groupId >org.springframework.boot</groupId >
13
13
<artifactId >spring-boot-starter-parent</artifactId >
14
- <version >1.4.2 .RELEASE</version >
14
+ <version >1.5.9 .RELEASE</version >
15
15
</parent >
16
16
17
17
<properties >
22
22
<dependencies >
23
23
<dependency >
24
24
<groupId >org.springframework.cloud</groupId >
25
- <artifactId >spring-cloud-starter-zuul</artifactId >
25
+ <artifactId >spring-cloud-starter-netflix- zuul</artifactId >
26
26
</dependency >
27
27
<dependency >
28
28
<groupId >org.springframework.cloud</groupId >
29
- <artifactId >spring-cloud-starter-eureka</artifactId >
29
+ <artifactId >spring-cloud-starter-netflix- eureka-client </artifactId >
30
30
</dependency >
31
31
</dependencies >
32
32
36
36
<dependency >
37
37
<groupId >org.springframework.cloud</groupId >
38
38
<artifactId >spring-cloud-dependencies</artifactId >
39
- <version >Camden.SR2 </version >
39
+ <version >Edgware.RELEASE </version >
40
40
<type >pom</type >
41
41
<scope >import</scope >
42
42
</dependency >
Original file line number Diff line number Diff line change 11
11
<parent >
12
12
<groupId >org.springframework.boot</groupId >
13
13
<artifactId >spring-boot-starter-parent</artifactId >
14
- <version >1.4.2 .RELEASE</version >
14
+ <version >1.5.9 .RELEASE</version >
15
15
</parent >
16
16
17
17
<properties >
22
22
<dependencies >
23
23
<dependency >
24
24
<groupId >org.springframework.cloud</groupId >
25
- <artifactId >spring-cloud-starter-hystrix-dashboard</artifactId >
25
+ <artifactId >spring-cloud-starter-netflix- hystrix-dashboard</artifactId >
26
26
</dependency >
27
27
</dependencies >
28
28
32
32
<dependency >
33
33
<groupId >org.springframework.cloud</groupId >
34
34
<artifactId >spring-cloud-dependencies</artifactId >
35
- <version >Camden.SR2 </version >
35
+ <version >Edgware.RELEASE </version >
36
36
<type >pom</type >
37
37
<scope >import</scope >
38
38
</dependency >
Original file line number Diff line number Diff line change 11
11
<parent >
12
12
<groupId >org.springframework.boot</groupId >
13
13
<artifactId >spring-boot-starter-parent</artifactId >
14
- <version >1.4.2 .RELEASE</version >
14
+ <version >1.5.9 .RELEASE</version >
15
15
</parent >
16
16
17
17
<properties >
22
22
<dependencies >
23
23
<dependency >
24
24
<groupId >org.springframework.cloud</groupId >
25
- <artifactId >spring-cloud-starter-turbine</artifactId >
25
+ <artifactId >spring-cloud-starter-netflix- turbine</artifactId >
26
26
</dependency >
27
27
</dependencies >
28
28
32
32
<dependency >
33
33
<groupId >org.springframework.cloud</groupId >
34
34
<artifactId >spring-cloud-dependencies</artifactId >
35
- <version >Camden.SR2 </version >
35
+ <version >Edgware.RELEASE </version >
36
36
<type >pom</type >
37
37
<scope >import</scope >
38
38
</dependency >
Original file line number Diff line number Diff line change 11
11
<parent >
12
12
<groupId >org.springframework.boot</groupId >
13
13
<artifactId >spring-boot-starter-parent</artifactId >
14
- <version >1.4.2 .RELEASE</version >
14
+ <version >1.5.9 .RELEASE</version >
15
15
</parent >
16
16
17
17
<properties >
39
39
40
40
<dependency >
41
41
<groupId >org.springframework.cloud</groupId >
42
- <artifactId >spring-cloud-starter-eureka</artifactId >
42
+ <artifactId >spring-cloud-starter-netflix- eureka-client </artifactId >
43
43
</dependency >
44
44
</dependencies >
45
45
49
49
<dependency >
50
50
<groupId >org.springframework.cloud</groupId >
51
51
<artifactId >spring-cloud-dependencies</artifactId >
52
- <version >Camden.SR2 </version >
52
+ <version >Edgware.RELEASE </version >
53
53
<type >pom</type >
54
54
<scope >import</scope >
55
55
</dependency >
Original file line number Diff line number Diff line change 1
- version : " 2 " # 表示使用docker-compose.yml的Version 2 file format编写
1
+ version : " 3 " # 表示使用docker-compose.yml的Version 3 file format编写
2
2
services :
3
3
microservice-discovery-eureka-ha1 :
4
4
hostname : peer1 # 指定hostname
Original file line number Diff line number Diff line change 1
- version : " 2 "
1
+ version : " 3 "
2
2
services :
3
3
peer1 : # 默认情况下,其他服务可使用服务名称连接到该服务。对于peer2节点,它需连接http://peer1:8761/eureka/,因此,我们可配置该服务的名称为peer1。
4
4
image : itmuch/microservice-discovery-eureka-ha:0.0.1-SNAPSHOT
Original file line number Diff line number Diff line change 11
11
<parent >
12
12
<groupId >org.springframework.boot</groupId >
13
13
<artifactId >spring-boot-starter-parent</artifactId >
14
- <version >1.4.2 .RELEASE</version >
14
+ <version >1.5.9 .RELEASE</version >
15
15
</parent >
16
16
17
17
<properties >
22
22
<dependencies >
23
23
<dependency >
24
24
<groupId >org.springframework.cloud</groupId >
25
- <artifactId >spring-cloud-starter-eureka-server</artifactId >
25
+ <artifactId >spring-cloud-starter-netflix- eureka-server</artifactId >
26
26
</dependency >
27
27
</dependencies >
28
28
32
32
<dependency >
33
33
<groupId >org.springframework.cloud</groupId >
34
34
<artifactId >spring-cloud-dependencies</artifactId >
35
- <version >Camden.SR2 </version >
35
+ <version >Edgware.RELEASE </version >
36
36
<type >pom</type >
37
37
<scope >import</scope >
38
38
</dependency >
Original file line number Diff line number Diff line change 1
- version : " 2 "
1
+ version : " 3 "
2
2
services :
3
3
peer1 :
4
4
image : itmuch/microservice-discovery-eureka-ha:0.0.1-SNAPSHOT
Original file line number Diff line number Diff line change 11
11
<parent >
12
12
<groupId >org.springframework.boot</groupId >
13
13
<artifactId >spring-boot-starter-parent</artifactId >
14
- <version >1.4.2 .RELEASE</version >
14
+ <version >1.5.9 .RELEASE</version >
15
15
</parent >
16
16
17
17
<properties >
31
31
32
32
<dependency >
33
33
<groupId >org.springframework.cloud</groupId >
34
- <artifactId >spring-cloud-starter-eureka</artifactId >
34
+ <artifactId >spring-cloud-starter-netflix- eureka-client </artifactId >
35
35
</dependency >
36
36
37
37
<dependency >
38
38
<groupId >org.springframework.cloud</groupId >
39
- <artifactId >spring-cloud-starter-hystrix</artifactId >
39
+ <artifactId >spring-cloud-starter-netflix- hystrix</artifactId >
40
40
</dependency >
41
41
</dependencies >
42
42
46
46
<dependency >
47
47
<groupId >org.springframework.cloud</groupId >
48
48
<artifactId >spring-cloud-dependencies</artifactId >
49
- <version >Camden.SR2 </version >
49
+ <version >Edgware.RELEASE </version >
50
50
<type >pom</type >
51
51
<scope >import</scope >
52
52
</dependency >
Original file line number Diff line number Diff line change 11
11
<parent >
12
12
<groupId >org.springframework.boot</groupId >
13
13
<artifactId >spring-boot-starter-parent</artifactId >
14
- <version >1.4.2 .RELEASE</version >
14
+ <version >1.5.9 .RELEASE</version >
15
15
</parent >
16
16
17
17
<properties >
22
22
<dependencies >
23
23
<dependency >
24
24
<groupId >org.springframework.cloud</groupId >
25
- <artifactId >spring-cloud-starter-eureka-server</artifactId >
25
+ <artifactId >spring-cloud-starter-netflix- eureka-server</artifactId >
26
26
</dependency >
27
27
</dependencies >
28
28
32
32
<dependency >
33
33
<groupId >org.springframework.cloud</groupId >
34
34
<artifactId >spring-cloud-dependencies</artifactId >
35
- <version >Camden.SR2 </version >
35
+ <version >Edgware.RELEASE </version >
36
36
<type >pom</type >
37
37
<scope >import</scope >
38
38
</dependency >
You can’t perform that action at this time.
0 commit comments