Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9058287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T14:41:17+00:00 2026-06-16T14:41:17+00:00

I hav an application-context-validation.xml <bean id=x class=/> <bean id=y class=/> <bean id=z class=/> <bean

  • 0

I hav an application-context-validation.xml

<bean id=x class=""/>
<bean id=y class=""/>
<bean id=z class=""/>
<bean id=w class=""/>

<util:list id="list1" list-class="java.util.ArrayList">
<ref bean="x" />
<ref bean="z" />
<ref bean="y" />
</util:list>

<util:list id="list2" list-class="java.util.ArrayList">
<ref bean="x" />
<ref bean="z" />
<ref bean="w" />
</util:list>

In the service class I Have

@Autowired
List<String> list1;

@Autowired
List<String> list2;

But When I am reading list1 all the values (x,y,z,w) is coming.

Could any one help me regarding this ??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T14:41:18+00:00Added an answer on June 16, 2026 at 2:41 pm

    Change your annotation in your test to use @Resource for such beans, referring to the specific collection/map bean by unique name.

    @Resource(name="list1")
    List<String> list1;
    
    @Resource(name="list2")
    List<String> list2;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am adding UITabBarController in my IPhone application.I hav mentioned it in my TabsAppDelegate.h
I want to hav a scrollable container that hosts a scrollable list with iScroll4.
I hav been going over some old hw assignments from a class last semester.
Can we create an object of a class inside another class in php?I hav
I hav a table with following fields public class ActivationCode { public virtual int
I'm trying to write an android application that communicates with a java PC server
We hav developed an application for video conference using silverlight. It works properly for
I hav a webserver and when I try to use the hibernate util I
I hav a php code where it displays buttons from A-Z: <table id=optionAndAnswer class=optionAndAnswer>
I am trying to use the javascript extension in a blackberry webworks application.I hav

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.