title: Environment-specific configuration for a Spring-based web application?
body: <p>How can I know the deployment environment of a web application, e.g. whether it is local, dev, qa or prod, etc. Is there any way I can determine this in spring application context file at runtime?</p>