Declaring an array of objects in a Spring bean context

后端 未结 4 1643
遇见更好的自我
遇见更好的自我 2020-12-16 12:09

I\'m trying to create an array of objects in a Spring context file so I can inject it to a constructor that\'s declared like this:

public RandomGeocodingServ         


        
4条回答
  •  有刺的猬
    2020-12-16 12:33

    Spring can automatically convert a list into an array[]

    check it out http://forum.springsource.org/showthread.php?37767-Injecting-String-Array

    
       
    
    

提交回复
热议问题