change @Resource to @Autowired in UserController