Using Spring IoC to set up enum values

Do you mean setting up the enum itself?

I don’t think that’s possible. You cannot instantiate enums because they have a static nature. So I think that Spring IoC can’t create enums as well.

On the other hand, if you need to set initialize something with a enum please check out the Spring IoC chapter. (search for enum) There’s a simple example that you can use.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)