The annotation @Inject (javax.inject.Inject) is part of the Java CDI standard introduced in Java EE 6 (JSR-299), which Spring has choosen to support using @Inject synonymously with their own @Autowired annotation.
The annotation @Autowired is springs own (legacy) annotation. @Inject is part of a new Java technology called CDI that defines a standard for dependency injection similar to Spring. In a spring application, the two annotations works the same way as Spring has decided to support some JSR-299 annotations in addition to their own.
Both of these annotations use the ‘AutowiredAnnotationBeanPostProcessor’ to inject dependencies