wood burning stoves 2.0*
The moose likes Spring and the fly likes Creating a map in Spring with enum as keytpe Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Creating a map in Spring with enum as keytpe" Watch "Creating a map in Spring with enum as keytpe" New topic
Author

Creating a map in Spring with enum as keytpe

Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

I have defined a map in spring config file with enum as key type. I am getting this error message

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mymap': Error converting typed String value for bean property 'mybean'; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert value of type 'java.lang.String' to required type 'MyEnum'.


Groovy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Creating a map in Spring with enum as keytpe