IntelliJ IDEA shows errors when using Spring's @Autowired annotation

前端 未结 26 2382
栀梦
栀梦 2020-12-07 15:40

IntelliJ IDEA is showing errors when I use Spring\'s @Autowired annotation in the class, but the class is functioning without any problem.

Here is this

26条回答
  •  粉色の甜心
    2020-12-07 16:11

    I had the same problem with IntelliJ IDEA 13.1.4 I solved it by removing the Spring facet (File->Project Structure) and leaving it to just show "Detection".

提交回复
热议问题