Hi everyone, I want to use enums as keys in a map within the context.xml. The following doesn't work. Any ideas on what I should do ? Thanks. Martin.
<bean id="mybean" class="com.abc.MyBean"> <property name="mappers"> <map> <entry> <key> <bean class="com.abc.Colour.RED"/> </key> <value> <bean class="com.abc.RedMapper"/> </value> </entry> </map> </property> </bean>