当前位置:网站首页>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
边栏推荐
猜你喜欢
Generate filled text and pictures
UE4/UE5 虚幻引擎,材质篇,纹理,Compression and Memory压缩和内存
Download and use of font icons
[to be continued] [UE4 notes] L3 import resources and project migration
Bucket sort
Recherche de mots pour leetcode (solution rétrospective)
[speed pointer] 142 circular linked list II
嵌入式数据库开发编程(五)——DQL
The present is a gift from heaven -- a film review of the journey of the soul
2022/7/2 question summary
随机推荐
Chinese notes of unit particle system particle effect
Binary search basis
GBase数据库助力湾区数字金融发展
嵌入式数据库开发编程(零)
UE 虚幻引擎,项目结构
When will Wei Lai, who has been watched by public opinion, start to "build high-rise buildings" again?
用 Jmeter 工具做个小型压力测试
Fragment addition failed error lookup
小程序直播+電商,想做新零售電商就用它吧!
Haut OJ 1243: simple mathematical problems
xftp7与xshell7下载(官网)
十年不用一次的JVM调用
Pointnet++的改进
【论文笔记】Multi-Goal Reinforcement Learning: Challenging Robotics Environments and Request for Research
Double pointer Foundation
Listview pull-down loading function
Animation
Ue4/ue5 illusory engine, material part (III), material optimization at different distances
嵌入式数据库开发编程(五)——DQL
django连接数据库报错,这是什么原因