自信的姐姐

关注

SpringBoot中使用 @Autowired注解 发现提示报错

自信的姐姐

关注

阅读 35

2022-04-26

在写注解的时候 用@Autowired 发现ide提示报错了

但是不要担心, 项目运行的时候是能正常运行的, 不影响使用.

也可以把 @Autowired 注解换成 @Resource 注解 就不提示错误了

相关推荐

龙毓七七

Spring中使用@Autowired注解 对象是null

龙毓七七 114 0 0

影子喵喵喵

Spring中使用@Autowired注解进行自动匹配

影子喵喵喵 37 0 0

zhaoxj0217

Spring中使用自带@Autowired注解实现策略模式

zhaoxj0217 7 0 0

幸甚至哉歌以咏志

springboot~ApplicationContextAware与@Autowired注解

幸甚至哉歌以咏志 58 0 0

伽马星系

【注解使用】使用@Autowired注解警告Field injection is not recommended

伽马星系 103 0 0

兔八哥软件爱分享

SpringBoot的@Autowired、@Resource、@RequiredArgsConstructor注解的学习

兔八哥软件爱分享 39 0 0

刘员外__

Springboot @Autowired

刘员外__ 58 0 0

杰森wang

SpringBoot中使用注解校验实体类参数

杰森wang 245 0 0

Python百事通

spring @Autowired @Resource注解

Python百事通 113 0 0

小贴贴纸happy

CICD 小提示:Jenkins 中使用 shell for 循环报错

小贴贴纸happy 39 0 0

精彩评论(0)

0 0 举报