I have many sets of spring configurations (XML file for Bean initialization and property files), different types of services / servers For this, I also use Maven to manage reliance and manage creation (optional with eclipse).
My intention was to keep a flag that I could pass Maven to create a project with the selected configuration profile.
Example:
mvn package production will place conf / production files in web-INF / classes
I have solved the problem using the approach of Spring Profile, as suggested by @Gerardibus. I looked and followed this way. If someone is following a single path, be careful that your servlet version needs to be upgraded to 3.x.
No comments:
Post a Comment