List of Lists in Spring XML

I'm trying to use spring xml to create a list of lists. What is the proper syntax for this?

List<List<String>> alternatePrimaryKeys;
public List<List<String>> getAlternatePrimaryKeys() {
  return this.alternatePrimaryKeys;
public void setAlternatePrimaryKeys(List<List<String>> alternatePrimaryKeys) {
  this.alternatePrimaryKeys = alternatePrimaryKeys;
Non-Working Spring XML:
<property name="alternatePrimaryKeys">

Open in new window

Who is Participating?
XidosConnect With a Mentor Author Commented:
The code snippet for the xml is fine. My test framework wasn't properly configured.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.