摘要: setter注入需要无参构造创建对象然后通过set方法赋值 required=true就是说这个bean必须在xml里配置了,不然就抛出异常 the bean property must be populated at configuration time 自动装配:@Autowired注入首先根据 阅读全文
posted @ 2023-02-18 21:10 澄镜 阅读(41) 评论(0) 推荐(0)