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
I might be a little late, but after spending hours and researching on this issue.
I found out that in the latest version IntelliJ 2020 @AutoWired is optional and constructor based depedency injection is preferable.
I sloved the problem by simply removing the @AutoWired Annotation from Service and Controller class and using constructor based dependency injection.
This link might help.
Happy Coding!