提交 f5496f6d 编写于 作者: hebao@lab.ibiz5.com's avatar hebao@lab.ibiz5.com

mq参数默认值调整

上级 9488aca1
...@@ -19,7 +19,7 @@ import org.springframework.util.ObjectUtils; ...@@ -19,7 +19,7 @@ import org.springframework.util.ObjectUtils;
*/ */
@Aspect @Aspect
@Component @Component
@ConditionalOnExpression("${rocketmq.consumer.enabled}&&'${rocketmq.consumer.namesrvAddr:}'!=''") @ConditionalOnExpression("${rocketmq.consumer.enabled:false}")
public class TopicListenerApsect { public class TopicListenerApsect {
@Autowired @Autowired
private TopicListenter topicListenter; private TopicListenter topicListenter;
......
...@@ -12,7 +12,7 @@ import org.springframework.context.annotation.Configuration; ...@@ -12,7 +12,7 @@ import org.springframework.context.annotation.Configuration;
@Slf4j @Slf4j
@Configuration @Configuration
@ConditionalOnExpression("${rocketmq.producer.enabled}&&'${rocketmq.producer.namesrvAddr:}'!=''") @ConditionalOnExpression("${rocketmq.producer.enabled:false}")
public class MQProducerConfigure { public class MQProducerConfigure {
public static final Logger LOGGER = LoggerFactory.getLogger(MQProducerConfigure.class); public static final Logger LOGGER = LoggerFactory.getLogger(MQProducerConfigure.class);
...@@ -36,7 +36,6 @@ public class MQProducerConfigure { ...@@ -36,7 +36,6 @@ public class MQProducerConfigure {
* @throws MQClientException * @throws MQClientException
*/ */
@Bean @Bean
@ConditionalOnExpression("${rocketmq.producer.enabled:false}")
public DefaultMQProducer defaultProducer() throws MQClientException { public DefaultMQProducer defaultProducer() throws MQClientException {
log.info("defaultProducer 正在创建---------------------------------------"); log.info("defaultProducer 正在创建---------------------------------------");
DefaultMQProducer producer = new DefaultMQProducer(groupName); DefaultMQProducer producer = new DefaultMQProducer(groupName);
......
...@@ -28,7 +28,7 @@ import static cn.ibizlab.core.enums.RuleEnginerParamEnum.*; ...@@ -28,7 +28,7 @@ import static cn.ibizlab.core.enums.RuleEnginerParamEnum.*;
@Component @Component
@Slf4j @Slf4j
@ConditionalOnExpression("${rocketmq.consumer.enabled}&&'${rocketmq.consumer.namesrvAddr:}'!=''") @ConditionalOnExpression("${rocketmq.consumer.enabled:false}")
public class RocktcermqCustmerRunner implements ApplicationRunner { public class RocktcermqCustmerRunner implements ApplicationRunner {
@Autowired @Autowired
private RuleEngineMapper ruleEngineMapper; private RuleEngineMapper ruleEngineMapper;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册