@Override public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException { if(“userServiceId”.equals(beanName)){ System.out.println("前方法 : " + beanName); } return bean; }
后处理bean 对一个生效
最新推荐文章于 2020-11-27 11:45:53 发布