摘要: 一、前端传code值,后端自动转枚举(这里举例code为int类型)只适用表单传参! spring是通过Converter接口将Inter转换枚举。 分为三个步骤: 配置实现转换能力接口IntToEnumConverable 设置自定义类型的转换工厂EnumConverterFac 将工厂添加到Sp 阅读全文
posted @ 2022-02-16 23:29 站在巨人肩上的人 阅读(811) 评论(0) 推荐(0) 编辑