Hi, need some guidance on how best to do this. While the following class would work in taking in all the comma separated subjects as provided in the XML.
How do I make it such that the values taken in to the map isn't just a simple
String but an Array of class or a List of class? For example, following is the code that I want to use.....
Array style
List style
Tried the Array style but was welcomed with the following type of exception.
Exception in
thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name ......: Failed to convert value of type 'java.lang.String' to required type 'org.highschool.Subject'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [org.highschool.Subject]: no matching editors or conversion strategy found