Post a Job  |   Ask a Question?   |   Already registered? login or register
Saroj Sahoo
16/04/2016 07:16 PM

Autowire Annotation


Is @Inject is a pure replacement of @Autowire Annotation?
Spam    2 Comments

Mona,Dora
18/04/2016 10:35:04
no... @Inject is not came from Springframework it is from CDI concept..

AnilKumar,Nayak
18/04/2016 19:01:06
Better use @Inject all the time. Because it is java configuration approach(provided by sun) which makes our application agnostic to the framework. So if you spring also your classes will work. If you use @Autowired it will works only with spring because @Autowired is spring provided annotation.

Languages :
xml