What is the correct way to split Spring\'s configuration to multiple xml files?
At the moment I have
/WEB-INF/foo-servlet.xml
I'm the author of modular-spring-contexts.
This is a small utility library to allow a more modular organization of spring contexts than is achieved by using Composing XML-based configuration metadata. modular-spring-contexts works by defining modules, which are basically stand alone application contexts and allowing modules to import beans from other modules, which are exported ín their originating module.
The key points then are
A simple example would look like this:
File moduleDefinitions.xml:
File serverModule.xml:
File clientModule.xml