opengoofy / hippo4j

📌 异步线程池框架,支持线程池动态变更&监控&报警,无需修改代码轻松引入。Asynchronous thread pool framework, support Thread Pool Dynamic Change & monitoring & Alarm, no need to modify the code easily introduced.
https://hippo4j.cn
Apache License 2.0
5.53k stars 1.17k forks source link

调整线程池构建通知参数优先级 #825

Closed magestacks closed 1 year ago

baymax55 commented 1 year ago

调整后出现 notifyConfigsmap无法进行赋值,导致后续进行通知时无法从该map中获取到对应的key,从而无法进行推送

cn.hippo4j.springboot.starter.notify.ServerNotifyConfigBuilder#buildNotify 方法内的 threadPoolIds 会为空,而改用CommandLineRunner 接口则不会为空

baymax55 commented 1 year ago

@magegoofy

magestacks commented 1 year ago

什么场景下出现的这种问题

baymax55 commented 1 year ago

1 2

baymax55 commented 1 year ago

前提 最新版devlop分支代码

1.启动hippo4j-server服务 2.启动hippo4j-spring-boot-starter-example 服务 2.1 cn.hippo4j.message.service.Hippo4jBaseSendMessageService 实现 org.springframework.beans.factory.InitializingBean 接口会导致该现象发生

magestacks commented 1 year ago

提个 PR 修复下吧先,别耽误正常开发。