摘要: 自定义BeanDefinitionRegistryPostProcessor 概述 BeanDefinitionRegistryPostProcessor继承自BeanFactoryPostProcessor,是一种比较特殊的BeanFactoryPostProcessor。BeanDefiniti 阅读全文
posted @ 2019-08-17 16:44 技术-刘腾飞 阅读(1216) 评论(0) 推荐(0) 编辑
摘要: springboot自定义Starter 自定义Starter命名规则 注意artifactId的命名规则,Spring官方Starter通常命名为spring boot starter {name}如 spring boot starter web, Spring官方建议非官方Starter命名应 阅读全文
posted @ 2019-08-17 16:44 技术-刘腾飞 阅读(910) 评论(0) 推荐(0) 编辑
摘要: ApplicationContextAware 概述 在某些特殊的情况下,Bean需要实现某个功能,但该功能必须借助于Spring容器才能实现,此时就必须让该Bean先获取Spring容器,然后借助于Spring容器实现该功能。为了让Bean获取它所在的Spring容器,可以让该Bean实现Appl 阅读全文
posted @ 2019-08-17 16:43 技术-刘腾飞 阅读(204) 评论(0) 推荐(0) 编辑