feat(improve) - 优化Starter 启动打印信息

This commit is contained in:
wangli 2026-02-25 14:53:06 +08:00
parent fd78c71ddb
commit 1934d6f5a0

View File

@ -116,7 +116,11 @@ public class ImplementationReadyChecker implements ApplicationListener<Applicati
dto.setApplicationName(environment.getProperty("spring.application.name")); dto.setApplicationName(environment.getProperty("spring.application.name"));
dto.setProfile(environment.getProperty("spring.profiles.active")); dto.setProfile(environment.getProperty("spring.profiles.active"));
dto.setAlterContent("必接事件实现类检查未通过,未实现的方法: " + String.join(", ", unImplementedMethods) + "。请确保至少有一个实现类覆盖这些方法以处理相应的事件。"); dto.setAlterContent("必接事件实现类检查未通过,未实现的方法: " + String.join(", ", unImplementedMethods) + "。请确保至少有一个实现类覆盖这些方法以处理相应的事件。");
workflowCoreService.sendDingtalk(dto); try {
workflowCoreService.sendDingtalk(dto);
} catch (Exception e) {
log.warn("send dingtalk error: {}", e.getMessage(), e);
}
} }
private static boolean[] checkUnImplementedMethodsWithInterface(ApplicationContext context) { private static boolean[] checkUnImplementedMethodsWithInterface(ApplicationContext context) {