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

How to provide config file for Ruby command line utility written in Ruby?

ruby command-line configuration-files

I have a command line utility written in Ruby using GLI framework. I would like to have configuration for my command line utility in my home directory, using Ruby itself as DSL to handle it (simila...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.