use @Autowired instead of @Resource