The files of this type configure the main Spring Framework container for each application block.
A set of spring.xml files, including the ones defined in base projects, is declared in the cuba.springContextConfig application property. File order is important because each subsequent file overrides already defined bean configurations.
Most of the configuration of the main container is performed using bean annotations (e.g.
@Inject and others), therefore the only mandatory part of spring.xml in an application project is the
context:component-scan element, which specifies the base Java package for lookup of annotated classes. For example: