IntelliJ IDEA is showing errors when I use Spring\'s @Autowired annotation in the class, but the class is functioning without any problem.
@Autowired
Here is this
Remove .iml file from all your project module and next go to File -> Invalidate Caches/Restart