摘要:
自定义BeanDefinitionRegistryPostProcessor 概述 BeanDefinitionRegistryPostProcessor继承自BeanFactoryPostProcessor,是一种比较特殊的BeanFactoryPostProcessor。BeanDefiniti 阅读全文
摘要:
springboot自定义Starter 自定义Starter命名规则 注意artifactId的命名规则,Spring官方Starter通常命名为spring boot starter {name}如 spring boot starter web, Spring官方建议非官方Starter命名应 阅读全文
摘要:
ApplicationContextAware 概述 在某些特殊的情况下,Bean需要实现某个功能,但该功能必须借助于Spring容器才能实现,此时就必须让该Bean先获取Spring容器,然后借助于Spring容器实现该功能。为了让Bean获取它所在的Spring容器,可以让该Bean实现Appl 阅读全文