intellij - spring is not being recognized (Unmapped Spring configuration) intellij - spring is not being recognized (Unmapped Spring configuration) spring spring

intellij - spring is not being recognized (Unmapped Spring configuration)


You need to do the following:

  1. Go to the project structure dialog (either by clicking the warning or through file=>project structure
  2. select the modules item in the left hand list
  3. go through and right click on the modules with missing files and select Add=>Spring
  4. in the new tab click the + button
  5. you should now see a list of the xml files. Check the boxes next to them

It's not entirely clear to me what this achieves apart from getting rid of the warnings! If anyone could shed any light on that it'd be good.


You need to check which configurations IntelliJ will use to provide inspections on wired beans.

Go to FileProject StructureProject SettingsModules.

Select your module and selected (or add) the Spring facet.
In the right area you can add or modify application contexts that are used by your module. Just check every configuartion you need in your context.


In addition to the above steps (in Bart's answer) , I had to

 1. click on the unmapped spring beans from the warning dialog box  2. select all the beans file 3. set application context as "Spring Application Context" (You many want to change it to other contexts, if you need)

and it worked for me.