IntelliJ 2018.1 Ultimate: Cannot find bean with qualifier

Answered

I am constantly having "errors" on "Perform code analysis" before commit due to "Error:(21, 94) Cannot find bean with qualifier 'connectionFactoryBean'"

But if I open "Spring -> Beans -> Spring Application Context", I see the configuration class of that bean (on a light-yellow background) and the bean itself under that class, so definitely IDEA knows that I have this bean

 

Should I raise a defect or how do I fix it?

0
3 comments

You can either disable the inspection or report a bug at https://youtrack.jetbrains.com/issues/IDEA if this inspection is false positive.

0

turned out that this specific file itself was not linked to the context. so Question: should not IDEA automatically add @Configuration annotated classes to a Spring facet?

0

Please sign in to leave a comment.