Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

spring property value and maven profile

Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Report post to moderator
Not sure if I should post it here or maven forum.  Just posted in maven but thought it may belong to a spring question.

In above example, I want "dbHost" have different values per environment.  So in maven pom.xml, if I set

When I use Maven to build the EAR/WAR, I pass  "-P prod" (meaning use prod profile), will the <bean> in applicationContext.xml auto get the value of ""  ?
Saloon Keeper
Posts: 22111
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Report post to moderator
I think you can now post in both forums at the same time. But I answered you over there, so I'm locking this copy to avoid confusion.
I will suppress my every urge. But not this shameless plug:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic