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
You should check if you have @Component, @Repository or similar added on the class