File tree Expand file tree Collapse file tree 14 files changed +95
-130
lines changed
spring-cloud-gray-samples
spring-cloud-gray-server-sample
test/java/cn/springcloud/gray/service/test
spring-cloud-gray-service-a-sample
src/main/resources/config
spring-cloud-gray-service-a1-sample
java/cn/springcloud/service/a/rest
spring-cloud-gray-service-b-sample
java/cn/springcloud/gray/service/b
spring-cloud-gray-zuul-sample
src/main/resources/config Expand file tree Collapse file tree 14 files changed +95
-130
lines changed Original file line number Diff line number Diff line change 21
21
<groupId >org.springframework.boot</groupId >
22
22
<artifactId >spring-boot-starter-test</artifactId >
23
23
</dependency >
24
- <dependency >
25
- <groupId >org.springframework.cloud</groupId >
26
- <artifactId >spring-cloud-starter-eureka</artifactId >
27
- </dependency >
24
+ <!-- <dependency> -- >
25
+ <!-- <groupId>org.springframework.cloud</groupId> -- >
26
+ <!-- <artifactId>spring-cloud-starter-eureka</artifactId> -- >
27
+ <!-- </dependency> -- >
28
28
<dependency >
29
29
<groupId >cn.springcloud.gray</groupId >
30
30
<artifactId >spring-cloud-starter-gray-server</artifactId >
31
31
</dependency >
32
+ <!-- <dependency>-->
33
+ <!-- <groupId>cn.springcloud.gray</groupId>-->
34
+ <!-- <artifactId>spring-cloud-gray-server-plugin-eureka</artifactId>-->
35
+ <!-- </dependency>-->
36
+
37
+ <!-- nacos -->
32
38
<dependency >
33
39
<groupId >cn.springcloud.gray</groupId >
34
- <artifactId >spring-cloud-gray-server-plugin-eureka </artifactId >
40
+ <artifactId >spring-cloud-gray-server-plugin-nacos-discovery </artifactId >
35
41
</dependency >
36
42
<dependency >
37
- <groupId >cn.springcloud.gray </groupId >
38
- <artifactId >spring-cloud-gray-server-plugin-event-stream </artifactId >
43
+ <groupId >com.alibaba.cloud </groupId >
44
+ <artifactId >spring-cloud-starter-alibaba-nacos-discovery </artifactId >
39
45
</dependency >
40
-
41
- <!-- <dependency>-->
42
- <!-- <groupId>org.springframework.cloud</groupId>-->
43
- <!-- <artifactId>spring-cloud-starter-stream-rabbit</artifactId>-->
44
- <!-- </dependency>-->
46
+ <!-- <dependency>-->
47
+ <!-- <groupId>cn.springcloud.gray</groupId>-->
48
+ <!-- <artifactId>spring-cloud-gray-server-plugin-event-stream</artifactId>-->
49
+ <!-- </dependency>-->
45
50
46
51
</dependencies >
47
52
Original file line number Diff line number Diff line change 3
3
spring :
4
4
application :
5
5
name : gray-Server
6
+
6
7
# 通用数据源配置
7
8
datasource :
8
9
driver-class-name : com.mysql.jdbc.Driver
@@ -25,6 +26,9 @@ spring:
25
26
username : admin
26
27
password : admin
27
28
cloud :
29
+ nacos :
30
+ discovery :
31
+ server-addr : 127.0.0.1:8848
28
32
stream :
29
33
bindings :
30
34
# GrayEventInput:
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 21
21
<groupId >org.springframework.boot</groupId >
22
22
<artifactId >spring-boot-starter-test</artifactId >
23
23
</dependency >
24
+ <!-- <dependency>-->
25
+ <!-- <groupId>org.springframework.cloud</groupId>-->
26
+ <!-- <artifactId>spring-cloud-starter-eureka</artifactId>-->
27
+ <!-- </dependency>-->
24
28
<dependency >
25
- <groupId >org.springframework .cloud</groupId >
26
- <artifactId >spring-cloud-starter-eureka </artifactId >
29
+ <groupId >com.alibaba .cloud</groupId >
30
+ <artifactId >spring-cloud-starter-alibaba-nacos-discovery </artifactId >
27
31
</dependency >
28
32
<dependency >
29
33
<groupId >org.apache.commons</groupId >
30
34
<artifactId >commons-lang3</artifactId >
31
35
<version >3.5</version >
32
36
</dependency >
33
37
38
+
34
39
<!-- <dependency>-->
35
40
<!-- <groupId>cn.springcloud.gray</groupId>-->
36
41
<!-- <artifactId>spring-cloud-starter-gray-client</artifactId>-->
Original file line number Diff line number Diff line change 1
1
spring :
2
2
application :
3
3
name : service-a
4
+ cloud :
5
+ nacos :
6
+ discovery :
7
+ server-addr : 127.0.0.1:8848
4
8
server :
5
9
port : 20103
6
10
eureka :
Original file line number Diff line number Diff line change 19
19
<groupId >org.springframework.boot</groupId >
20
20
<artifactId >spring-boot-starter-test</artifactId >
21
21
</dependency >
22
- <dependency >
23
- <groupId >org.springframework.cloud</groupId >
24
- <artifactId >spring-cloud-starter-eureka</artifactId >
25
- </dependency >
22
+ <!-- <dependency> -- >
23
+ <!-- <groupId>org.springframework.cloud</groupId> -- >
24
+ <!-- <artifactId>spring-cloud-starter-eureka</artifactId> -- >
25
+ <!-- </dependency> -- >
26
26
<dependency >
27
27
<groupId >org.apache.commons</groupId >
28
28
<artifactId >commons-lang3</artifactId >
34
34
</dependency >
35
35
36
36
<dependency >
37
- <groupId >cn.springcloud.gray </groupId >
38
- <artifactId >spring-cloud-starter-gray-client </artifactId >
37
+ <groupId >com.alibaba.cloud </groupId >
38
+ <artifactId >spring-cloud-starter-alibaba-nacos-discovery </artifactId >
39
39
</dependency >
40
+
41
+ <!-- <dependency>-->
42
+ <!-- <groupId>cn.springcloud.gray</groupId>-->
43
+ <!-- <artifactId>spring-cloud-starter-gray-client</artifactId>-->
44
+ <!-- <exclusions>-->
45
+ <!-- <exclusion>-->
46
+ <!-- <groupId>cn.springcloud.gray</groupId>-->
47
+ <!-- <artifactId>spring-cloud-gray-plugin-eureka</artifactId>-->
48
+ <!-- </exclusion>-->
49
+ <!-- </exclusions>-->
50
+ <!-- </dependency>-->
51
+
40
52
</dependencies >
41
53
42
54
</project >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
spring :
2
2
application :
3
3
name : service-a
4
+ cloud :
5
+ nacos :
6
+ discovery :
7
+ server-addr : 127.0.0.1:8848
4
8
server :
5
9
port : 20104
6
10
eureka :
Original file line number Diff line number Diff line change 21
21
<groupId >org.springframework.boot</groupId >
22
22
<artifactId >spring-boot-starter-test</artifactId >
23
23
</dependency >
24
+ <!-- <dependency>-->
25
+ <!-- <groupId>org.springframework.cloud</groupId>-->
26
+ <!-- <artifactId>spring-cloud-starter-eureka</artifactId>-->
27
+ <!-- </dependency>-->
24
28
<dependency >
25
- <groupId >org.springframework .cloud</groupId >
26
- <artifactId >spring-cloud-starter-eureka </artifactId >
29
+ <groupId >com.alibaba .cloud</groupId >
30
+ <artifactId >spring-cloud-starter-alibaba-nacos-discovery </artifactId >
27
31
</dependency >
28
32
<dependency >
29
33
<groupId >org.springframework.cloud</groupId >
47
51
<dependency >
48
52
<groupId >cn.springcloud.gray</groupId >
49
53
<artifactId >spring-cloud-starter-gray-client</artifactId >
54
+ <exclusions >
55
+ <exclusion >
56
+ <groupId >cn.springcloud.gray</groupId >
57
+ <artifactId >spring-cloud-gray-plugin-eureka</artifactId >
58
+ </exclusion >
59
+ </exclusions >
60
+ </dependency >
61
+
62
+ <dependency >
63
+ <groupId >cn.springcloud.gray</groupId >
64
+ <artifactId >spring-cloud-gray-plugin-ribbon-nacos-discovery</artifactId >
50
65
</dependency >
51
66
<dependency >
52
67
<groupId >cn.springcloud.gray</groupId >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments