当前位置:网站首页>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 1347: addition of choice -- high progress addition
- Haut OJ 1357: lunch question (I) -- high precision multiplication
- PMP candidates, please check the precautions for PMP examination in July
- LeetCode之單詞搜索(回溯法求解)
- Download xftp7 and xshell7 (official website)
- Data is stored in the form of table
- Haut OJ 1243: simple mathematical problems
- [to be continued] [depth first search] 547 Number of provinces
- Unity find the coordinates of a point on the circle
- Three dimensional dice realize 3D cool rotation effect (with complete source code) (with animation code)
猜你喜欢
TF-A中的工具介绍
[轉]: OSGI規範 深入淺出
《动手学深度学习》学习笔记
质量体系建设之路的分分合合
Stm32cubemx (8): RTC and RTC wake-up interrupt
2022年上半年国家教师资格证考试
Embedded database development programming (zero)
Redis has four methods for checking big keys, which are necessary for optimization
[interval problem] 435 Non overlapping interval
【论文笔记】Multi-Goal Reinforcement Learning: Challenging Robotics Environments and Request for Research
随机推荐
一个新的微型ORM开源框架
SDEI初探-透过事务看本质
Quick sort summary
[LeetCode] 整数反转【7】
room数据库的使用
Ue4/ue5 illusory engine, material part (III), material optimization at different distances
Collapse of adjacent vertical outer margins
YOLOv5添加注意力机制
Common database statements in unity
[to be continued] [UE4 notes] L2 interface introduction
Programmers' experience of delivering takeout
Out and ref functions of unity
win下一键生成当日的时间戳文件
Pause and resume of cocos2dx Lua scenario
Magnifying glass effect
[allocation problem] 135 Distribute candy
Haut OJ 1316: sister choice buys candy III
Listview pull-down loading function
[to be continued] [depth first search] 547 Number of provinces
A three-dimensional button