7.11 Using JSR 330 Standard Annotations
从Spring3.0开始,Spring支持JSR-330标准注解(DI)。Those annotations are scanned in the same way as the Spring annotatoins.
只需要添加相关的jar文件到classpath
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
<version>1</version>
</dependency>