Spring <prop> tag

I have

   <bean id="dao" class="......"> 
      <property name="foo">
         <props>
           <prop key="me">Homer</prop>
         <props>
       <property>
   </bean>

I want to use my current properties file, name-value pair, to change "Homer" I cannot figure it out...

Answers


Use the PropertyPlaceholderConfigurer bean. Example here:

http://static.springframework.org/spring/docs/2.5.x/reference/beans.html#beans-factory-placeholderconfigurer


Need Your Help

Keep an activity/activities alive while the app is open in the background

android android-activity timer background-service data-persistence

Hey guys I'm brand new to this site, I know people get put down a lot for asking duplicated questions so I hope this isn't one of them.

Changing default HTML Tags in Sublime Text 3

html css html5 sublimetext3 sublimetext

I just wanted to ask, if there is any way, to edit the default tags which come with Sublime Text 3.