In my application I have beans annotated with @Profile(\"prod\") and @Profile(\"demo\"). The first one, as you can guess :), is used on beans that
@Profile(\"prod\")
@Profile(\"demo\")
Define your production environment as default profile in your web.xml
spring.profiles.default prod
and if you want to use a different profile pass it as system property
mvn -Dspring.profiles.active="demo" jetty:run