feat(REQ-4418) - Starter 增加 MQ 必须实现的监听
This commit is contained in:
parent
f7bf39c51f
commit
b2718354d0
@ -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, 请确保至少有一个实现类被正确扫描和注册。");
|
||||
}
|
||||
|
||||
// 记录每个方法是否被实现
|
||||
|
||||
Loading…
Reference in New Issue
Block a user