How to assign bean's property an Enum value in Spring config file?

前端 未结 9 937
遥遥无期
遥遥无期 2020-11-28 06:16

I have a standalone enum type defined, something like this:

package my.pkg.types;

public enum MyEnumType {
    TYPE1,
    TYPE2
}

Now, I w

9条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-28 06:36

    This is what did it for me MessageDeliveryMode is the enum the bean will have the value PERSISTENT:

    
        
    
    

提交回复
热议问题