Redis 序列化和工具类封装
1.序列化 1. 导入fastjson2依赖 <dependency> <groupId>com.alibaba.fastjson2</groupId> <artifactId>fastjson2</artifactId> <v
1.序列化 1. 导入fastjson2依赖 <dependency> <groupId>com.alibaba.fastjson2</groupId> <artifactId>fastjson2</artifactId> <v
1.创建Api返回码接口 /** * Api返回码接口 */ public interface ICode { Integer getCode(); String getMessage(); } 2.实现ICode接口 /** * API返回码封装类 */ @A