欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

@Resource 和 @Resources 注解

最编程 2024-03-30 13:09:27
...
package javax.annotation; import java.lang.annotation.*; import static java.lang.annotation.ElementType.*; import static java.lang.annotation.RetentionPolicy.*; /** * This class is used to allow multiple resources declarations. * * @see javax.annotation.Resource * @since Common Annotations 1.0 */ @Documented @Retention(RUNTIME) @Target(TYPE) public @interface Resources { /** * Array used for multiple resource declarations. */ Resource[] value(); }

推荐阅读