Use @Autowired instead of @Resource