摘要:
2. @Autowired 作用:@Autowired表示被修饰的类需要注入对象,spring会扫描所有被@Autowired标注的类,然后根据 类型在ioc容器中找到匹配的类注入。 @Autowired public class Car(Brand benz) { this.brand=benz; 阅读全文
posted @ 2019-07-26 18:21
LittleSpring
阅读(6812)
评论(0)
推荐(0)
浙公网安备 33010602011771号