Results 1 to 2 of 2

Thread: spring 1.2

  1. #1
    Join Date
    Oct 2007
    Posts
    142

    Default spring 1.2

    Hi

    I am working in project using the version 1.2 (after years with 2.5 and 3)
    I would like to know if the is a way de create a map as a bean in the xml configuration file.

    Regards

  2. #2
    Join Date
    Oct 2007
    Posts
    142

    Default

    Find a solution

    <bean id="..." class="java.util.HashMap" factory-bean="">
    <constructor-arg>
    <map>
    <entry key="..." value-ref="..." />
    </map>
    </constructor-arg>
    </bean>
    It should work

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •