Преглед на файлове

新增redis消息队列

wangliang преди 4 години
родител
ревизия
1a05b7079e

+ 7 - 0
distributed-print/src/main/java/com/qmth/distributed/print/config/RedisListenerConfig.java

@@ -15,6 +15,13 @@ import org.springframework.data.redis.listener.Topic;
 
 import javax.annotation.Resource;
 
+/**
+ * @Description: redis消息队列
+ * @Param:
+ * @return:
+ * @Author: wangliang
+ * @Date: 2021/7/9
+ */
 @Configuration
 public class RedisListenerConfig {
 

+ 7 - 0
distributed-print/src/main/java/com/qmth/distributed/print/config/RedisMessageListener.java

@@ -19,6 +19,13 @@ import java.time.Duration;
 import java.util.Objects;
 import java.util.concurrent.atomic.AtomicInteger;
 
+/**
+ * @Description: redis消息监听
+ * @Param:
+ * @return:
+ * @Author: wangliang
+ * @Date: 2021/7/9
+ */
 @Component
 public class RedisMessageListener implements MessageListener {
     private final static Logger log = LoggerFactory.getLogger(RedisMessageListener.class);

+ 1 - 1
distributed-print/src/main/resources/application-dev.properties

@@ -55,7 +55,7 @@ sys.config.adminLogoUrl=http://qmth-test.oss-cn-shenzhen.aliyuncs.com/frontend/w
 sys.config.htmlToPdfUrl=/usr/local/bin/wkhtmltopdf
 sys.config.autoCreatePdfResetMaxCount=5
 sys.config.threadPoolCoreSize=1
-sys.config.customThreadPoolCoreSize=true
+sys.config.customThreadPoolCoreSize=false
 sys.config.sessionActive=4h
 spring.resources.static-locations=file:${sys.config.serverUpload},classpath:/META-INF/resources/,classpath:/resources/