Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Questions or comments? Please use our dedicated forum.

Main concepts

A Spring facet can be attached on a Module.
Spring facets usually contain one more user-configured/provided filesets, which group a set of Spring related configuration files (XML, Code or .properties files).
A fileset usually corresponds to one actual application context configuration at runtime.
Filesets can depend on other filesets , model(possibly in another module).

As an API-user, you will usually rather work with SpringModel (which is built on top of fileset(s)).

How do I...

Spring Model

Obtain Spring Model by file, PsiElement, ..


See com.intellij.spring.SpringModelProvider to provide implicit filesets (e.g. provided by another framework in specific configuration file).

Contribute implicit beans

See com.intellij.spring.model.jam.CustomComponentsDiscoverer or com.intellij.spring.model.SpringImplicitBeansProviderBase to provide implicit (framework-specific) beans (e.g. "servletContext" by Spring MVC).


Add additional inspections (e.g. for custom namespace) to Spring Validator (Settings|Compiler|Validation) via EP com.intellij.spring.SpringInspectionsRegistry$Contributor.