指定id为accountDao1

测试

如果把Autowired注释掉的话,

就会报空指针异常。就是没有注入进来

@Qualifier不能独立使用必须和Autowired配合使用

Resource

Resource

总结

@Value


 

相关文章: