I'm not worrying about whether to use name while injecting or not, I just wanted to know why @Resource Works and @Autowired doesn't and more importantly is it good to use @Resource for this kind of...
Type: Posts; User: premraj; Keyword(s):
I'm not worrying about whether to use name while injecting or not, I just wanted to know why @Resource Works and @Autowired doesn't and more importantly is it good to use @Resource for this kind of...
I tried the following code with Spring 3.x which failed with BeanNotFoundException (exception cause pasted below)
@Service
public class UserService implements Service{
@Autowired
...