摘要: ApplicationContextAware获取bean 概述 在某些特殊的情况下,Bean需要实现某个功能,但该功能必须借助于Spring容器才能实现,此时就必须让该Bean先获取Spring容器,然后借助于Spring容器实现该功能。为了让Bean获取它所在的Spring容器,可以让该Bean 阅读全文
posted @ 2019-08-20 16:44 技术-刘腾飞 阅读(1247) 评论(0) 推荐(0) 编辑
摘要: springBoot的事件机制 GenericApplicationListener用法 什么是ApplicationContext? 它是Spring的核心,Context我们通常解释为上下文环境,但是理解成容器会更好些。 ApplicationContext则是应用的容器。 Spring把Bea 阅读全文
posted @ 2019-08-20 16:43 技术-刘腾飞 阅读(2485) 评论(0) 推荐(0) 编辑