Before post this Question, I google to get Properties from Spring project(Its NOT web-based project). I am confused as every one are talking about application-context.xml an
Create new property file inside your src/main/resources/ directory and file extension must be .properties e.g. db.properties
src/main/resources/
.properties
db.properties
Write following context properties in your spring xml configuration file:
Usage: ${property-key}
${property-key}