转载:https://www.cnblogs.com/niechen/p/8979578.html
简单来说就是收到通知,构造map-》构造EnvironmentChangeEvent->监听EnvironmentChangeEvent-》遍历所有的bean rebind()->检查是否是标注了相关注解的bean,是的话destory(),重新initializeBean()
2024-01-28 22:17:22
转载:https://www.cnblogs.com/niechen/p/8979578.html
简单来说就是收到通知,构造map-》构造EnvironmentChangeEvent->监听EnvironmentChangeEvent-》遍历所有的bean rebind()->检查是否是标注了相关注解的bean,是的话destory(),重新initializeBean()