@@ -84,7 +84,6 @@ public class IotSubscribe { | |||||
String password = doSign(signContent,accessSecret, signMethod); | String password = doSign(signContent,accessSecret, signMethod); | ||||
//接入域名,请参见AMQP客户端接入说明文档。 | //接入域名,请参见AMQP客户端接入说明文档。 | ||||
// TODO Change ${YourHost} | |||||
String connectionUrl = "failover:(amqps://" + iotHost + ":" + iotPort | String connectionUrl = "failover:(amqps://" + iotHost + ":" + iotPort | ||||
+ "?amqp.idleTimeout=80000)" | + "?amqp.idleTimeout=80000)" | ||||
+ "?failover.reconnectDelay=30"; | + "?failover.reconnectDelay=30"; | ||||
@@ -2,9 +2,47 @@ spring: | |||||
main: | main: | ||||
allow-bean-definition-overriding: true | allow-bean-definition-overriding: true | ||||
application: | application: | ||||
name: push-service | |||||
name: iot-gateway-service | |||||
cloud: | cloud: | ||||
nacos: | nacos: | ||||
config: | config: | ||||
server-addr: 172.16.192.26:8848 | server-addr: 172.16.192.26:8848 | ||||
file-extension: yaml | |||||
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 |
@@ -2,7 +2,7 @@ spring: | |||||
main: | main: | ||||
allow-bean-definition-overriding: true | allow-bean-definition-overriding: true | ||||
application: | application: | ||||
name: push-service | |||||
name: iot-gateway-service | |||||
cloud: | cloud: | ||||
nacos: | nacos: | ||||
config: | config: | ||||
@@ -2,7 +2,7 @@ spring: | |||||
main: | main: | ||||
allow-bean-definition-overriding: true | allow-bean-definition-overriding: true | ||||
application: | application: | ||||
name: push-service | |||||
name: iot-gateway-service | |||||
cloud: | cloud: | ||||
nacos: | nacos: | ||||
config: | config: | ||||
@@ -2,7 +2,7 @@ spring: | |||||
main: | main: | ||||
allow-bean-definition-overriding: true | allow-bean-definition-overriding: true | ||||
application: | application: | ||||
name: push-service | |||||
name: iot-gateway-service | |||||
cloud: | cloud: | ||||
nacos: | nacos: | ||||
config: | config: | ||||