@Configuration public class MyBeanFactoryPostProcessor extends Object implements org.springframework.beans.factory.config.BeanFactoryPostProcessor
Constructor and Description |
---|
MyBeanFactoryPostProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
本方法在Bean对象实例化之前执行,
通过beanFactory可以获取bean的定义信息,
并可以修改bean的定义信息。这点是和BeanPostProcessor最大区别
|
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) throws org.springframework.beans.BeansException
postProcessBeanFactory
in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
org.springframework.beans.BeansException
Copyright © 2022. All rights reserved.