摘要: springboot自定义通用枚举校验注解 1.新增枚举上层接口,所有需要进行枚举校验的接口必须实现此接口 public interface IIterateEnum { /** * 获取枚举code值 */ int getCode(); } 2.枚举定义示例: @AllArgsConstructo 阅读全文
posted @ 2022-03-10 17:32 那家伙真懒 阅读(1497) 评论(0) 推荐(0) 编辑