当前位置:网站首页>json相关图形
json相关图形
2022-07-17 00:02:00 【aiwokache】
一 业务:前后端数据交互
二 需求:比xml更好
- 跨编程语言
解析速度快
占用空间小
且易开发人员、机器阅读和编写
三 解决方案:json
四 完成学习:json
1 思想
用纯文本格式来存储和表示数据
用于数据交换
2 体系组织
- JSON,JavaScript Object Notation,JS对象标记,javascript的一个子集
3 具体1:json有两种数据结构
(1)对象结构

- { key,value}
- key必须是string类型
- value:String、Number、Object、数组......
(2)数组结构

- [value1,value2,value3......]
- ["abc",12345,false,null]:数组包含了String、Number、 Boolean、 null、Object类型数据
4 具体2:json数据转换
(1)业务需求:实现浏览器和spring mvc控制器之间的json数据交互
(2)解决方法:
1)功能:
- 将请求信息中的json数据转换为一个类型为T的对象,并绑定到请求方法的参数中
- 将T对象转换为jsvon响应数据信息传递给浏览器显示。
2)工具:
spring,HttpMessageConverter<T>接口,实现类MappingJackson2HttpMessageConverter
(3)只官配play:spring + spring mvc + json的3个包 + jquery ajax

1)前端:jquery ajax ,请求类型json,返回类型json

2)后台:spring + spring mvc + json的3个包 + @RequestBody + @ResponseBody
- 第一步:要使用MappingJackson2HttpMessageConverter对数据进行转换,就需要使用Jackson的开源包:
●jackson-annoations-2.8.8.jar: JSON转换注解包;
●jackson-core-2.8.8.jar: JSON转换核心包;
●jackson-databind-2.8.8.jar: JSON转换的数据绑定包。 - 第二步:使用json格式转换注解

(4)工具
JS 在线运行工具,在线运行/测试/调试 Javascript 代码 - dute.org
五 注应用:
fastjson 阿里巴巴
微服务:spring boot + spring cloud + vue.js,C++程序,Python
边栏推荐
- Vite3.0 发布
- Baidu page starts from 1 and JPA starts from 0
- Prometheus+grafana visual real-time JVM monitoring tool
- Switch and router technology: link aggregation, spanning tree protocol STP and spanning tree protocol configuration
- Rocky basic exercises find, SED, grep, tar
- (零七)Flask有手就行——初识数据库(Flask-SQLAlchemy)
- PHP上传图片
- 一小时搭建属于属于自己的博客系统网站
- Service层需要接口吗
- 从22顶会看对比学习在推荐的应用
猜你喜欢

Prometheus+grafana visual real-time JVM monitoring tool

Deep learning - multidimensional data and tensor

J9数字论:去中心化身份的主流化还有多久?

Greenplum常用
![[Shader implémente l'effet Wave Shader chapitre 1]](/img/e1/fc5549f41d90979465bd71d1110688.png)
[Shader implémente l'effet Wave Shader chapitre 1]

Fire prevention in midsummer! Guangdong carries out fire safety inspection in summer

【MariaDB】启动服务、停止服务、查看状态

Mysql—锁:全面理解

(十)STM32——Systick滴答定时器

Résolution de code aléatoire lors de l'insertion de valeurs chinoises dans la base de données MySQL
随机推荐
Deep and detailed understanding of matrix (addition, subtraction, multiplication, transpose, conjugate, conjugate transpose of matrix)
如何使用服务器搭建我们的博客
面试官:怎么不用定时任务实现关闭订单?
NVIDIA's Jetson uses deepstream to accelerate common problem analysis, deepstream messages are sent and received externally, xvaier self startup program, and excellent blog summary (fine 2)
Greenplum common
Jwt和Token
Leetcode 242: valid Letter ectopic words
12. Integer to Roman numerals ●●
【着色器实现Wave效果_Shader效果第一篇】
The difference between TCP and UDP
利用 Redis 的 sorted set 做每周热评的功能
MySQL data table query
队列的链式表示和实现
微信小程序session持有
mysql中的配置文件
NiO three board axe buffer, a double-edged sword to improve program efficiency
Advanced Mathematics - Chapter 8 differential calculus of multivariate functions - extreme and maximum values of multivariate functions
Photoshop网页设计教程
玩转CSDN编辑器
Résolution de code aléatoire lors de l'insertion de valeurs chinoises dans la base de données MySQL