java - Spring from scratch - Bug on context:property-placeholder -
i'm doing test on very, simple application using spring . my app have have one bean , i'm injecting simple string class , printing value. so far working . what need: i want string configuration file, create file inside /src/main/resource what did: 1) on application-context.xml add: <context:property-placeholder location="classpath:myconfigfile.properties" /> 2) on application-context.xml change simple string use ${name_test}: <bean id="hello" class="com.dummy.sayhello"> <property name="name" value="${name_test}" /> </bean> 3) double check myconfigfile.properties , contains "name_test=jacktheripper" 4) output not 'translating' value config file, have output when run app: hello ${name_test} and i'm stuck here, clue, tips??? just fyi i use this tutorial tests, maybe help. i add log4j maven dependencies , log4j config file , works fin...