File tree Expand file tree Collapse file tree 3 files changed +61
-46
lines changed
spring-cloud-gray-samples
spring-cloud-gray-server-sample
src/main/resources/config
spring-cloud-gray-service-b-sample Expand file tree Collapse file tree 3 files changed +61
-46
lines changed Original file line number Diff line number Diff line change 34
34
<dependency >
35
35
<groupId >cn.springcloud.gray</groupId >
36
36
<artifactId >spring-cloud-starter-gray-server</artifactId >
37
+ <!-- <exclusions>-->
38
+ <!-- <exclusion>-->
39
+ <!-- <artifactId>spring-cloud-gray-server-plugin-event-longpolling</artifactId>-->
40
+ <!-- <groupId>cn.springcloud.gray</groupId>-->
41
+ <!-- </exclusion>-->
42
+ <!-- </exclusions>-->
37
43
</dependency >
38
44
<dependency >
39
45
<groupId >cn.springcloud.gray</groupId >
40
46
<artifactId >spring-cloud-gray-server-plugin-eureka</artifactId >
41
47
</dependency >
42
48
43
49
<!-- nacos -->
44
- <!-- <dependency>-->
45
- <!-- <groupId>cn.springcloud.gray</groupId>-->
46
- <!-- <artifactId>spring-cloud-gray-server-plugin-nacos-discovery</artifactId>-->
47
- <!-- </dependency>-->
48
- <!-- <dependency>-->
49
- <!-- <groupId>com.alibaba.cloud</groupId>-->
50
- <!-- <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>-->
51
- <!-- </dependency>-->
50
+ <!-- <dependency>-->
51
+ <!-- <groupId>cn.springcloud.gray</groupId>-->
52
+ <!-- <artifactId>spring-cloud-gray-server-plugin-nacos-discovery</artifactId>-->
53
+ <!-- </dependency>-->
54
+ <!-- <dependency>-->
55
+ <!-- <groupId>com.alibaba.cloud</groupId>-->
56
+ <!-- <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>-->
57
+ <!-- </dependency>-->
52
58
53
59
54
- <!-- <dependency>-->
55
- <!-- <groupId>cn.springcloud.gray</groupId>-->
56
- <!-- <artifactId>spring-cloud-gray-server-plugin-event-stream</artifactId>-->
57
- <!-- </dependency>-->
60
+ <!-- <dependency>-->
61
+ <!-- <groupId>cn.springcloud.gray</groupId>-->
62
+ <!-- <artifactId>spring-cloud-gray-server-plugin-event-stream</artifactId>-->
63
+ <!-- </dependency>-->
64
+ <!-- <dependency>-->
65
+ <!-- <groupId>org.springframework.cloud</groupId>-->
66
+ <!-- <artifactId>spring-cloud-starter-stream-rabbit</artifactId>-->
67
+ <!-- </dependency>-->
58
68
59
69
</dependencies >
60
70
Original file line number Diff line number Diff line change @@ -31,24 +31,18 @@ spring:
31
31
server-addr : 127.0.0.1:8848
32
32
stream :
33
33
bindings :
34
- # GrayEventInput:
35
- # group: service-a
36
- # destination: test
37
- # consumer:
38
- # concurrency: 1 #并发数
39
- # max-attempts: 1
40
34
GrayEventOutput :
41
35
destination : gray_event
42
- # rabbit:
43
- # bindings:
44
- # GrayEventInput:
45
- # consumer:
46
- # maxConcurrency: 1 #并发数
47
- # prefetch: 1 #从mq一次获取消息的数量
48
- # requeueRejected: true #spring cloud stream 如果出现异常, 是否需要重新投递消息, false表示丢弃。 也有相应的Exception, true-MessageRejectedWhileStoppingException false-AmqpRejectAndDontRequeueException
49
- # auto-bind-dlq: true
50
- # acknowledgeMode: AUTO
51
- # acknowledgeMode: MANUAL
36
+ rabbit :
37
+ bindings :
38
+ GrayEventInput :
39
+ consumer :
40
+ maxConcurrency : 1 # 并发数
41
+ prefetch : 1 # 从mq一次获取消息的数量
42
+ requeueRejected : true # spring cloud stream 如果出现异常, 是否需要重新投递消息, false表示丢弃。 也有相应的Exception, true-MessageRejectedWhileStoppingException false-AmqpRejectAndDontRequeueException
43
+ auto-bind-dlq : true
44
+ acknowledgeMode : AUTO
45
+ acknowledgeMode : MANUAL
52
46
eureka :
53
47
client :
54
48
register-with-eureka : true
@@ -60,6 +54,8 @@ eureka:
60
54
gray :
61
55
server :
62
56
cluster :
57
+ synchro :
58
+ enable : false
63
59
peerNodes :
64
60
- host : localhost
65
61
port : 20202
Original file line number Diff line number Diff line change 48
48
<dependency >
49
49
<groupId >cn.springcloud.gray</groupId >
50
50
<artifactId >spring-cloud-starter-gray-client</artifactId >
51
- <!-- <exclusions>-->
52
- <!-- <exclusion>-->
53
- <!-- <groupId>cn.springcloud.gray</groupId>-->
54
- <!-- <artifactId>spring-cloud-gray-plugin-eureka</artifactId>-->
55
- <!-- </exclusion>-->
56
- <!-- </exclusions>-->
51
+ <!-- <exclusions>-->
52
+ <!-- <exclusion>-->
53
+ <!-- <artifactId>spring-cloud-gray-plugin-event-longpolling</artifactId>-->
54
+ <!-- <groupId>cn.springcloud.gray</groupId>-->
55
+ <!-- </exclusion>-->
56
+ <!-- <exclusion>-->
57
+ <!-- <groupId>cn.springcloud.gray</groupId>-->
58
+ <!-- <artifactId>spring-cloud-gray-plugin-eureka</artifactId>-->
59
+ <!-- </exclusion>-->
60
+ <!-- </exclusions>-->
57
61
</dependency >
58
62
59
- <!-- <dependency>-->
60
- <!-- <groupId>com.alibaba.cloud</groupId>-->
61
- <!-- <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>-->
62
- <!-- </dependency>-->
63
- <!-- <dependency>-->
64
- <!-- <groupId>cn.springcloud.gray</groupId>-->
65
- <!-- <artifactId>spring-cloud-gray-plugin-ribbon-nacos-discovery</artifactId>-->
66
- <!-- </dependency>-->
63
+ <!-- <dependency>-->
64
+ <!-- <groupId>com.alibaba.cloud</groupId>-->
65
+ <!-- <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>-->
66
+ <!-- </dependency>-->
67
+ <!-- <dependency>-->
68
+ <!-- <groupId>cn.springcloud.gray</groupId>-->
69
+ <!-- <artifactId>spring-cloud-gray-plugin-ribbon-nacos-discovery</artifactId>-->
70
+ <!-- </dependency>-->
67
71
<dependency >
68
72
<groupId >cn.springcloud.gray</groupId >
69
73
<artifactId >spring-cloud-gray-plugin-feign</artifactId >
70
74
</dependency >
71
- <!-- <dependency>-->
72
- <!-- <groupId>cn.springcloud.gray</groupId>-->
73
- <!-- <artifactId>spring-cloud-gray-plugin-event-stream</artifactId>-->
74
- <!-- </dependency>-->
75
+
76
+ <!-- <dependency>-->
77
+ <!-- <groupId>cn.springcloud.gray</groupId>-->
78
+ <!-- <artifactId>spring-cloud-gray-plugin-event-stream</artifactId>-->
79
+ <!-- </dependency>-->
80
+ <!-- <dependency>-->
81
+ <!-- <groupId>org.springframework.cloud</groupId>-->
82
+ <!-- <artifactId>spring-cloud-starter-stream-rabbit</artifactId>-->
83
+ <!-- </dependency>-->
75
84
</dependencies >
76
85
77
86
<build >
You can’t perform that action at this time.
0 commit comments