@Autowired()@Qualifier("baseDao")
privateUserDao userDao;
@Resource(name="baseDao")
private UserDao userDao;
@Autowired
@Qualifier("userServiceImpl")
public IUserService userService;
@Autowired
public void setUserDao(@Qualifier("userDao") UserDao userDao) {
this.userDao = userDao;
}
@Autowired(required = false)
public IUserService userService
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |