//可以修改Bean定义的属性(不是修改Bean)@Componentpublic class TulingBeanFactoryProcessor implements BeanFactoryPostProcessor { @Override public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException { beanFactory.getBeanDefinition("user").setLazyInit(false); }}