I\'ve an Enum class
public enum MyEnum{
ABC;
}
than my \'Mick\' class has this property
private Map
You just need to use concrete Map
class as HashMap
and not abstract or interface:
public class Mick {
private HashMap<MyEnum, OtherObj> myMap;
@Autowired
public void setMyMap(HashMap<MyEnum, OtherObj> myMap) {
this.myMap = myMap;
}
}
public class AppConfig
{
@Bean
public HashMap<MyEnum, OtherObj> myMap() { .. }
}