java.lang.ClassNotFoundException error using enum as a key in Map
- by LCYSoft
<util:map id="myMap" key-type="com.myClass.Foo.myEnum" value-type="com.myClass.Foo">
<entry>
<key>
<value type="com.myClass.Foo.myEnum">ONE</value>
</key>
<ref bean="myObj"/>
</entry>
</util:map>
package com.myClass
public class Foo {
public enum myEnum {ONE, TWO;}
}
I am trying to create a map from Spriong 2.5.
Map<myEnum, Foo> myMap;
I am getting
nested exception is java.lang.ClassNotFoundException:com.myClass.Foo.myEnum
I definitely have com.myClass.Foo.myEnumin com.myClass.Foo I don't know why I am getting java.lang.ClassNotFoundException
Thanks in advance