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 error message:
Autowired members must be defined in the valid spring bean (@Component/@Service,etc.) less... (Ctrl+F1) Checks autowiring problems in a bean class.
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".