Tag: autowired

java – What is the difference between @Inject and @Autowired in Spring Framework? Which one to use under what condition?

The Question : 714 people think this question is useful I am going through some blogs on SpringSource and in one of the blogs, author is using @Inject and I suppose he can also use @Autowired. Here is the piece of code: @Inject private CustomerOrderService customerOrderService; I am not sure about the difference between @Inject