feat(REQ-2924) - 移除 starter 的 Bean 注册

This commit is contained in:
wangli 2024-09-13 23:48:34 +08:00
parent 80af410408
commit d4e4f4a45e

View File

@ -165,6 +165,7 @@ public class StarterRPCInvokeMQConfiguration {
}
@Component
@ConditionalOnProperty(prefix = "rocketmq", value = "name-server")
@Conditional(NonContainerEnvironmentCondition.class)
@RocketMQMessageListener(topic = DEFAULT_EVENT + "${spring.profiles.active}",
consumerGroup = "GID_${spring.application.name}_workflow_engine_starter_${GID_SEGMENT}_consumer",
@ -199,6 +200,7 @@ public class StarterRPCInvokeMQConfiguration {
}
@Bean("workflowEngineClientRetryEventListener")
@ConditionalOnProperty(prefix = "rocketmq", value = "name-server")
public WorkflowEngineStarterRetryEventListener workflowEngineClientRetryEventListener(@Qualifier(WORKFLOW_ENGINE_STARTER_EVENT_CONSUMER_BEAN_NAME) EventConsumer workflowEngineStarterEventConsumer,
Environment environment,
WorkflowEngineStarterProperties starterProperties,