Spring MVC with several configurations

Posted by Michael Bulla on Stack Overflow See other posts from Stack Overflow or by Michael Bulla
Published on 2011-01-16T14:49:27Z Indexed on 2011/01/16 14:53 UTC
Read the original article Hit count: 255

Filed under:
|
|
|

Hello,

for my spring-mvc application I created several types of configuration (unittest, integration, qa, production). All the configs are in one war-file, so there is only one type of application I create. Which configuration to take should be decided by the server, where the application is running.

To decide what kind of configuration should be used, I have to look into a file. After that I can decide which configuration should be used by spring mvc.

For now by convention there is always the -servlet.xml used. Is there a way how to decide dynamically which config to take?

Regards, Michael

© Stack Overflow or respective owner

Related posts about java

Related posts about spring