chenyanbin

描述:Spring框架中,@Resource注解报错,在书写时没有自动提示

解决方法:因为maven配置文件的pom.xml文件中缺少javax.annotation的依赖,在pom.项目路中加入依赖即可

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

 

分类:

技术点:

相关文章:

  • 2021-10-07
  • 2021-07-18
  • 2021-12-06
  • 2021-10-17
  • 2022-02-08
  • 2021-07-30
猜你喜欢
  • 2021-04-20
  • 2021-08-25
  • 2021-06-27
  • 2021-05-02
  • 2022-01-07
  • 2021-10-20
相关资源
相似解决方案