Injecting a Map in enum through Spring
posted 4 years ago
Enums are basically static, you cannot inject beans into them. I can think of a few hacks that might get a reference to a bean into an enum, but you can not inject it directly. You might wan't to think about the design of you application first though and see if there is a better way.