There is no need to duplicate your context.xml. What you need is to make spring you different properties based on the supplied profile. This can be done either with XML or Java Config easily. If you are using XML, then at the end of your context.xml, you need to do something like this
<beans profile="dev">
<context:property-placeholder location="classpath*:dev.properties"/>
</beans>
<beans profile="production">
<context:property-placeholder location="classpath*:production.properties"/>
</beans>
If you need the corresponding Java Config, let me know and I will post that for you.
When you start the application you need to supply the correct profile (one way is by adding -Dspring.profiles.active="production" to the command line arguments)
Also I would recommend that if you are just getting started with project, check out Spring Boot which greatly simplifies Spring configuration (and takes case of what you want in an even easier way)