feat(REQ-4418) - Starter 增加 MQ 必须实现的监听

This commit is contained in:
wangli 2025-08-25 20:45:38 +08:00
parent f7bf39c51f
commit b2718354d0

View File

@ -38,7 +38,8 @@ public class ImplementationChecker implements ApplicationListener<ContextRefresh
Map<String, ProcessInstanceEventHandler> handlers = context.getBeansOfType(TARGET_INTERFACE);
if (handlers.isEmpty()) {
// 如果没有找到任何实现类可以选择抛出异常或记录警告
throw new IllegalStateException("未找到实现 " + TARGET_INTERFACE.getName() + " 接口的Bean, 请确保至少有一个实现类被正确扫描和注册。");
log.info("未找到实现 " + TARGET_INTERFACE.getName() + " 接口的Bean, 请确保至少有一个实现类被正确扫描和注册。");
// throw new IllegalStateException("未找到实现 " + TARGET_INTERFACE.getName() + " 接口的Bean, 请确保至少有一个实现类被正确扫描和注册。");
}
// 记录每个方法是否被实现