
Spring框架中@Resource注解报错解决方案
问题:Spring框架中,@Resource注解报错,在书写时没有自动提示
解决:因为maven配置文件的pom.xml文件中缺少javax.annotation的依赖,在pom.项目路中加入依赖即可
<!-- Javax Annotation --> <dependency> <groupId>javax.annotation</groupId> <artifactId>jsr250-api</artifactId> <version>1.0</version> </dependency> 也可以从MavenRepository下载 点击打开链接👁️ 阅读量:0
© 版权声明:本文《Spring框架中@Resource注解报错解决方案》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1687050161a420477.html。