提交 fc382de2 编写于 作者: ibizdev's avatar ibizdev

zhouweidong 发布系统代码 [ibiz-uaa,UAA鉴权]

上级 c5745d1f
...@@ -14,16 +14,18 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression; ...@@ -14,16 +14,18 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
@Slf4j @Slf4j
@Configuration @Configuration
@ConditionalOnExpression("${rocketmq.isOnOff:'off'}.equals('on')") @ConditionalOnExpression("${rocketmq.consumer.isOnOff:'off'}.equals('on')")
public class RocketMQConsumer { public class RocketMQConsumer {
@Value("${rocketmq.producer.groupName:default}") @Value("${rocketmq.producer.groupName:default}")
private String groupName; private String groupName;
@Value("${rocketmq.topic:default}")
private String topic;
@Value("${rocketmq.producer.namesrvAddr:127.0.0.1:9876}") @Value("${rocketmq.producer.namesrvAddr:127.0.0.1:9876}")
private String namesrvAddr; private String namesrvAddr;
// 消费者线程数据量
@Value("${rocketmq.consumer.consumeThreadMin:1}") @Value("${rocketmq.consumer.consumeThreadMin:1}")
private Integer consumeThreadMin; private Integer consumeThreadMin;
...@@ -33,9 +35,6 @@ public class RocketMQConsumer { ...@@ -33,9 +35,6 @@ public class RocketMQConsumer {
@Value("${rocketmq.consumer.consumeMessageBatchMaxSize:1}") @Value("${rocketmq.consumer.consumeMessageBatchMaxSize:1}")
private Integer consumeMessageBatchMaxSize; private Integer consumeMessageBatchMaxSize;
@Value("${rocketmq.topic:default}")
private String topic;
@Autowired @Autowired
@Lazy @Lazy
private RocketMQListenerProcessor listenerProcessor; private RocketMQListenerProcessor listenerProcessor;
......
...@@ -18,7 +18,7 @@ import java.util.List; ...@@ -18,7 +18,7 @@ import java.util.List;
*/ */
@Slf4j @Slf4j
@Component @Component
@ConditionalOnExpression("${rocketmq.producer.isOnOff:'off'}.equals('on')") @ConditionalOnExpression("${rocketmq.consumer.isOnOff:'off'}.equals('on')")
public class RocketMQListenerProcessor implements MessageListenerOrderly { public class RocketMQListenerProcessor implements MessageListenerOrderly {
@Autowired @Autowired
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册