From a9aaa9c57bcbb5ff129817b5fcff618b46ccecc7 Mon Sep 17 00:00:00 2001 From: linwl <304115325@qq.com> Date: Wed, 24 Feb 2021 16:30:50 +0800 Subject: [PATCH] =?UTF-8?q?service=E5=90=8D=E7=A7=B0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../telpo/iotgateway/server/IotSubscribe.java | 1 - src/main/resources/bootstrap-dev.yaml | 42 ++++++++++++++++++- src/main/resources/bootstrap-pro.yaml | 2 +- src/main/resources/bootstrap-test.yaml | 2 +- src/main/resources/bootstrap.yaml | 2 +- 5 files changed, 43 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/telpo/iotgateway/server/IotSubscribe.java b/src/main/java/com/telpo/iotgateway/server/IotSubscribe.java index be2fb56..6ef6cad 100644 --- a/src/main/java/com/telpo/iotgateway/server/IotSubscribe.java +++ b/src/main/java/com/telpo/iotgateway/server/IotSubscribe.java @@ -84,7 +84,6 @@ public class IotSubscribe { String password = doSign(signContent,accessSecret, signMethod); //接入域名,请参见AMQP客户端接入说明文档。 - // TODO Change ${YourHost} String connectionUrl = "failover:(amqps://" + iotHost + ":" + iotPort + "?amqp.idleTimeout=80000)" + "?failover.reconnectDelay=30"; diff --git a/src/main/resources/bootstrap-dev.yaml b/src/main/resources/bootstrap-dev.yaml index 70a8c52..6e04fa8 100644 --- a/src/main/resources/bootstrap-dev.yaml +++ b/src/main/resources/bootstrap-dev.yaml @@ -2,9 +2,47 @@ spring: main: allow-bean-definition-overriding: true application: - name: push-service + name: iot-gateway-service cloud: nacos: config: server-addr: 172.16.192.26:8848 - file-extension: yaml \ No newline at end of file + file-extension: yaml + jackson: + time-zone: GMT+8 + date-format: yyyy-MM-dd HH:mm:ss + aop: + auto: true + proxy-target-class: true + devtools: + restart: + enabled: true + freemarker: + cache: false + +async: + pool: + corePoolSize: 4 + maxPoolSize: 8 + queueCapacity: 5000 + +scheduler: + pool: + size: 1 + #等待任务完成退出最大秒数 + await-seconds: 6 + task: + cron: "0 */1 * * * *" + +iot: + accessKey: LTAI4FdXhwy1evoHXingMaiZ + accessSecret: CGmGpzta6ro8Bta4RLiQD18EF8m6Bm + consumerGroupId: eQVdFouKAYajil208F7F000100 + iotInstanceId: iot-cn-nif1vosz501 + RegionId: cn-shanghai + ProductKey: a18mXM6Cvx8 + //签名方法:支持hmacmd5、hmacsha1和hmacsha256。 + signMethod: hmacmd5 + clientId: gateway + iotHost: contoso.com + iotPort: 5671 \ No newline at end of file diff --git a/src/main/resources/bootstrap-pro.yaml b/src/main/resources/bootstrap-pro.yaml index 23fb7a8..33e1749 100644 --- a/src/main/resources/bootstrap-pro.yaml +++ b/src/main/resources/bootstrap-pro.yaml @@ -2,7 +2,7 @@ spring: main: allow-bean-definition-overriding: true application: - name: push-service + name: iot-gateway-service cloud: nacos: config: diff --git a/src/main/resources/bootstrap-test.yaml b/src/main/resources/bootstrap-test.yaml index 568cfc8..e008907 100644 --- a/src/main/resources/bootstrap-test.yaml +++ b/src/main/resources/bootstrap-test.yaml @@ -2,7 +2,7 @@ spring: main: allow-bean-definition-overriding: true application: - name: push-service + name: iot-gateway-service cloud: nacos: config: diff --git a/src/main/resources/bootstrap.yaml b/src/main/resources/bootstrap.yaml index 70a8c52..266d144 100644 --- a/src/main/resources/bootstrap.yaml +++ b/src/main/resources/bootstrap.yaml @@ -2,7 +2,7 @@ spring: main: allow-bean-definition-overriding: true application: - name: push-service + name: iot-gateway-service cloud: nacos: config: