spring注入bean错误-Bean named 'abc' is expected to be of type 'AAA' but was actually of type 'BBB'
摘要:
@Resource注解有两个重要的属性:name和type。在一个使用@Resource来注入bean的声明语句中,@Resource优先是按name来解析bean的 阅读全文
posted @ 2023-08-16 19:11 buguge 阅读(380) 评论(0) 推荐(0) 编辑