摘要: spring配置文件中bean有多个属性,class属性必须指向实现类,只有实现类才可以new,一个接口没办法new 默认是单例模式 只有从spring容器中拿出来的bean才能使用 才被称作bean 想要使用spring中的bean必须从spring中拿,不能直接不注入就使用 想要注入 必须通过他 阅读全文
posted @ 2021-03-01 11:05 阿瑶丫 阅读(42) 评论(0) 推荐(0)