提交 290aaab8 编写于 作者: zhouweidong's avatar zhouweidong

rocketMQ优化

上级 309a3d2c
...@@ -50,7 +50,7 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression; ...@@ -50,7 +50,7 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
@Slf4j @Slf4j
@Configuration @Configuration
@ConditionalOnExpression("${r'${ibiz.rocketmq.producer.isOnOff:\''+mqServer+'\'}.equals(\'on\')}'} @ConditionalOnExpression("${r'${ibiz.rocketmq.producer.isOnOff:'+"'"+mqServer+"'"+"}.equals('on')"}")
public class RocketMQConfig { public class RocketMQConfig {
<#if hasMQProducer> <#if hasMQProducer>
......
...@@ -49,7 +49,7 @@ import java.util.List; ...@@ -49,7 +49,7 @@ import java.util.List;
*/ */
@Slf4j @Slf4j
@Component @Component
@ConditionalOnExpression("${r'${ibiz.rocketmq.producer.isOnOff:\''+mqServer+'\'}.equals(\'on\')}'} @ConditionalOnExpression("${r'${ibiz.rocketmq.producer.isOnOff:'+"'"+mqServer+"'"+"}.equals('on')"}")
public class RocketMQListenerProcessor implements MessageListenerOrderly { public class RocketMQListenerProcessor implements MessageListenerOrderly {
<#list sys.getAllPSDataEntities() as dataEntity> <#list sys.getAllPSDataEntities() as dataEntity>
......
...@@ -61,7 +61,7 @@ import java.util.List; ...@@ -61,7 +61,7 @@ import java.util.List;
@Slf4j @Slf4j
@Aspect @Aspect
@Component @Component
@ConditionalOnExpression("${r'${ibiz.rocketmq.producer.isOnOff:\''+mqServer+'\'}.equals(\'on\')}'} @ConditionalOnExpression("${r'${ibiz.rocketmq.producer.isOnOff:'+"'"+mqServer+"'"+"}.equals('on')"}")
public class RocketMQAspect public class RocketMQAspect
{ {
private final ExpressionParser parser = new SpelExpressionParser(); private final ExpressionParser parser = new SpelExpressionParser();
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册