摘要: 相同点: @Resource的作用相当于@Autowired,均可标注在字段或属性的setter方法上。 不同点: 提供方:@Autowired是由org.springframework.beans.factory.annotation.Autowired提供,换句话说就是由Spring提供;@Re 阅读全文
posted @ 2021-03-13 22:00 748573200000 阅读(115) 评论(0) 推荐(0)
摘要: BeanFactoryPostProcessor 自定义spring进行注入 import org.springframework.beans.BeansException; import org.springframework.beans.factory.config.BeanFactoryPos 阅读全文
posted @ 2021-03-13 19:44 748573200000 阅读(283) 评论(0) 推荐(0)