当前位置:网站首页>object serialization
object serialization
2022-07-05 05:18:00 【Qingqing not bald】
1. What is serialization and deserialization
Simply speaking , Will be Java Objects are converted into binary streams for transmission , Deserialization is to convert binary data stream into java Process of object information .
2. How to implement serialization
Just let the entity class implement Serializable Interface can
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "users",autoResultMap = true)
@ApiModel
public class User implements Serializable {
@TableField(value = "username")
@ApiModelProperty(value = " Student number ")
private String userName;
@TableId(value="age")
@ApiModelProperty(value = " User age ")
private Integer age;
By static Decorated properties cannot be serialized
3. Serialization mode
jdk Default serialization
The storage form is 16 The character of the base
JacksonJsonRedisSerializer serialize
边栏推荐
- Haut OJ 1352: string of choice
- What is the agile proportion of PMP Exam? Dispel doubts
- Lua GBK and UTF8 turn to each other
- Romance of programmers on Valentine's Day
- [to be continued] [UE4 notes] L1 create and configure items
- Ue4/ue5 illusory engine, material chapter, texture, compression and memory compression and memory
- Embedded database development programming (VI) -- C API
- [to be continued] [UE4 notes] L2 interface introduction
- UE 虚幻引擎,项目结构
- [转]MySQL操作实战(一):关键字 & 函数
猜你喜欢
小程序直播+電商,想做新零售電商就用它吧!
[to be continued] [depth first search] 547 Number of provinces
[to be continued] [UE4 notes] L3 import resources and project migration
Web APIs DOM节点
Applet live + e-commerce, if you want to be a new retail e-commerce, use it!
win10虚拟机集群优化方案
Use of snippets in vscode (code template)
十年不用一次的JVM调用
2022年上半年国家教师资格证考试
[to be continued] [UE4 notes] L2 interface introduction
随机推荐
Lua determines whether the current time is the time of the day
YOLOv5添加注意力机制
Redis has four methods for checking big keys, which are necessary for optimization
[binary search] 34 Find the first and last positions of elements in a sorted array
[paper notes] multi goal reinforcement learning: challenging robotics environments and request for research
Django reports an error when connecting to the database. What is the reason
C # perspective following
Haut OJ 1347: addition of choice -- high progress addition
Haut OJ 1316: sister choice buys candy III
[turn to] MySQL operation practice (III): table connection
[trans]: spécification osgi
服务熔断 Hystrix
Download xftp7 and xshell7 (official website)
Learning notes of "hands on learning in depth"
Unity intelligent NPC production -- pre judgment walking (method 1)
发现一个很好的 Solon 框架试手的教学视频(Solon,轻量级应用开发框架)
SDEI初探-透过事务看本质
stm32Cubemx(8):RTC和RTC唤醒中断
十年不用一次的JVM调用
Under the national teacher qualification certificate in the first half of 2022