I have a multi-module Maven project that uses Spring IoC, something like
parent-proj
- module1
- module2
- module3
- web-module
I question is:
What is the best practice to assemble applicationContext files? Should I create a gigantic applicationContext-web.xml in the web-module? Or should I create applicationContext-module<#>.xml in each sub-module, and import all of them in my applicationContext-web.xml?
I have been using the second option. Now it looks like things a bit out of control (e.g. beans override beans with the same id, etc).
Thanks.