Declaring an array of objects in a Spring bean context

后端 未结 4 1670
遇见更好的自我
遇见更好的自我 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

    I'm actually using tag to inject an array of objects into a bean and it works.

    Take a look at the following code...

        
                    
        
        
        
                  
        
    
        
            
                
                    
                    
                
            
         
    

提交回复
热议问题