Is this OK? Inspection: Spring | Spring Core | Cod...
# intellij
l
Is this OK? Inspection: Spring | Spring Core | Code | Autowired members defined in invalid Spring bean (Kotlin)
"Autowired members must be defined in valid Spring bean (@Component|@Service|...)"
shows this warning for Interface annotated with
org.springframework.stereotype.Repository
Copy code
@Autowired
protected lateinit var languageRepository: LanguageRepository
(I'm using latest stable IntelliJ Idea & Kotlin plugin (1.2.30-release-IJ2017.3-1) #spring #intellij
aaah, my fault. It seems that I had not configured Spring in Idea (
Unmapped Spring configuration files found.
). Now it's solved.