TRX 1 жил өмнө
parent
commit
138e988d61

+ 2 - 0
src/main/java/com/zswl/dataservice/service/artemis/OperationMessageService.java

@@ -25,6 +25,7 @@ import com.zswl.dataservice.utils.result.ResultContent;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang3.ObjectUtils;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Value;
 import org.springframework.context.ApplicationContext;
 import org.springframework.data.domain.Page;
 import org.springframework.data.domain.Pageable;
@@ -63,6 +64,7 @@ public class OperationMessageService {
     HxzService hxzService;
 
     // 保存90天
+    @Value("${artemisstore.time}")
     private Long ttlMill = 90 * 24L * 60 * 60 * 1000L;
 
     @Autowired

+ 7 - 25
src/main/resources/application-dev.yml

@@ -1,10 +1,4 @@
 spring:
-  #  activemq:
-  ##    broker-url: jgroups:(tcp://192.168.0.104:61616?connectionTimeout=60000,tcp://192.168.0.104:61617?connectionTimeout=60000,tcp://192.168.0.104:61618?connectionTimeout=60000)?timeout=60000
-  #    broker-url: tcp://192.168.0.104:61616?connectionTimeout=6000
-  #    user: trx
-  #    password: trx
-
   #  设置为 发布/订阅模式 jgroups failover
   jms:
     pub-sub-domain: true
@@ -39,33 +33,20 @@ spring:
           max-idle: 16   # 最大空闲连接
           min-idle: 8   # 最小空闲连接
           max-wait: 100ms # 连接等待时间
-#
-#    redis:
-#      host: localhost
-#      port: 6379
-#      password:
-#      database: 0
-#      timeout: 5000
-#      lettuce:
-#        pool:
-#          max-active: 32 # 最大连接
-#          max-idle: 16   # 最大空闲连接
-#          min-idle: 8   # 最小空闲连接
-#          max-wait: 100ms # 连接等待时间
-#      jedis:
-#        pool:
-#          max-active: 32 # 连接池最大连接数
-#          max-idle: 16  # 连接池中的最大空闲连接
-#          min-idle: 5  # 连接池中的最小空闲连接
-#          max-wait: 30000 # 当池耗尽时,在引发异常之前,连接分配应阻塞的最长时间(毫秒)
 
 artemis:
   alwaysSessionAsync: true
 
+
+# 全卡业务平台请求地址配置
 fullcard:
   url: http://192.168.0.104:9100
   cardServerName:  # 全卡业务平台服务名
 
+# mqtt 消息存储时间
+artemisstore:
+  time: 2592000000 # 30天
+
 # 阿里云OSS
 oss:
   maxCacheMinutes: 10
@@ -79,6 +60,7 @@ oss:
   accessKeySecret: Vbt3NiZfi6f47vU8QcfqQIsjiFo6vH
   arn: acs:ram::1540890773231210:role/oss
 
+
 # 日志配置
 logging:
   file: