使用javax.annotation的注解类

javax.annotation.Resource 注解在eclipse中无法通过 ctrl + shift + O导入该注解类,是因为javax是属于扩展库中,需要手动下载,或者使用maven依赖如下:

<dependency>
    <groupId>javax.annotation</groupId>
    <artifactId>jsr250-api</artifactId>
    <version>1.0</version>
</dependency>

相关文章:

  • 2021-06-28
  • 2021-11-17
  • 2022-12-23
  • 2021-09-10
  • 2021-11-26
  • 2022-12-23
猜你喜欢
  • 2020-05-04
  • 2020-06-08
  • 2021-08-28
  • 2021-11-09
  • 2021-12-23
  • 2022-12-23
相关资源
相似解决方案