第三方api对接怎么做?淘宝1688api接口怎么对接?

在今天的互联网上,第三方API对接是必不可少的。这种技术将不同的应用程序/服务连接在一起,创造了无限的可能性。

第三方api对接怎么做?

1、与支付公司签约

首先,通过正规的渠道,如支付公司官网或正规服务商,与第三方支付公司签订合同,一般是通过邮件形式发送。

然后获得适合自己的接口类型,拿到接口后,要确认下接口类型,是否是自己需要的接口。

2、选择适配语言版本

其次,选择合适的语言版本,要与自己的网站语言匹配。根据适配环境选择接口,接口分很多语言版本;

比如Java、Python、PHP、Curl语言版本,所以要选择与自己网站语言匹配的接口进行安装,然后对支付接口进行联合调整。

3、接口联调交易测试

最后,接口联调通过后,可先换成生产环境账号,获取到账户的支付密钥,进行交易测试;

测试没问题后,可以放到应用场景进行交易,交易测试成功即可。

淘宝1688api接口怎么对接?

item_get-获得1688商品详情

公共参数

名称类型必须描述
keyString调用key(必须以GET方式拼接在URL中)注册Key和secret接入
secretString调用密钥
api_nameStringAPI接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等]
cacheString[yes,no]默认yes,将调用缓存的数据,速度比较快
result_typeString[json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读
langString[cn,en,ru]翻译语言,默认cn简体中文
versionStringAPI版本

请求参数

请求参数:num_iid=610947572360

参数说明:num_iid:1688商品ID
sales_data:&sales_data=1 获取近30天成交数据
agent:&agent=1 获取1688分销代发价格数据

请求示例Curl PHP PHPsdk JAVA C# Python

# coding:utf-8
"""
Compatible for python2.x and python3.x
requirement: pip install requests
"""
from __future__ import print_function
import requests
# 请求示例 url 默认请求参数已经做URL编码
url = "https://api-gw.onebound.cn/1688/item_get/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=610947572360"
headers = {
    "Accept-Encoding": "gzip",
    "Connection": "close"
}
if __name__ == "__main__":
    r = requests.get(url, headers=headers)
    json_obj = r.json()
    print(json_obj)

响应示例

{
	"item": {
		"num_iid": "610947572360",
		"title": "厂家直销小米有品Qin2 Pro智能手机学生机老人机备用机小爱同学4G",
		"desc_short": "",
		"price": "799.00",
		"total_price": 0,
		"suggestive_price": 0,
		"orginal_price": "799.00",
		"nick": "qin多亲科技",
		"num": "1763",
		"detail_url": "https://detail.1688.com/offer/610947572360.html",
		"pic_url": "https://cbu01.alicdn.com/img/ibank/2020/063/830/13235038360_979836901.jpg",
		"brand": "",
		"brandId": "",
		"rootCatId": "",
		"cid": "50903",
		"desc": "<div id=\"offer-template-0\"></div><p><span><span>深圳市多亲科技有限公司(简称&ldquo;多亲科技&rdquo;)成立于2014年9月是国内领先的人工智能硬件解决方案供应商。多亲科技积极推动人工智能技术的创新研发,在人工智能终端设备、系统软件的研发和生产领域,具有深厚的技术沉淀与实力。</span></span></p><p><span>&nbsp;</span></p><p><span>&nbsp; &nbsp; &nbsp; &nbsp; 多亲产品销售网络覆盖全国各地乃至远销海外,欢迎企业定制、团购、经销代理。</span></p><p><span>&nbsp; &nbsp; &nbsp; &nbsp; 优质的产品、过硬的技术、完善的服务、是我们合作双赢的开篇。</span></p><p><span>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span ><strong><span >欢迎有意向者实地考察,垂询电话:13662284449.</span></strong></span></span></p><p><span>&nbsp;</span></p><p><span>温馨提示:</span></p><p><span><span><span>1、可定制--</span></span>承接各种订单订制!为客户定制机身、开机画面、预装软件、包装等定制!</span><br /><span><span><span>2、质量保证--</span></span>本公司专注通讯行业10年,线下线下百花齐放,客户复购率达30%以上。</span><br /><span><span><span>3、价格实惠--</span></span>本店是工厂直供,没有中间商差价,一站到客,薄利多销。</span><br /><span><span><span>4、售后服务--</span></span>本店出售的所有产品均提供1年的质保。因质量原因退换货(非人为因素)30天内换新。</span></p><p>&nbsp;</p><p><span><img alt=\"undefined\" height=\"446.22866894197955\" src=\"https://cbu01.alicdn.com/img/ibank/2020/560/807/14112708065_979836901.jpg\" width=\"790\" /><br /><img alt=\"undefined\" height=\"457.5154730327144\" src=\"https://cbu01.alicdn.com/img/ibank/2020/303/507/14112705303_979836901.jpg\" width=\"790\" /><br /><img alt=\"undefined\" height=\"443.2365499573014\" src=\"https://cbu01.alicdn.com/img/ibank/2020/499/812/14150218994_979836901.jpg\" width=\"790\" /><br /><img alt=\"undefined\" height=\"440.350569675723\" src=\"https://cbu01.alicdn.com/img/ibank/2020/770/128/14199821077_979836901.jpg\" width=\"790\" /><br /></span></p><p><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/588/942/13197249885_979836901.jpg\" /></p><p><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/778/789/13234987877_979836901.jpg\" /><br /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/109/489/13234984901_979836901.jpg\" /><br /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/156/072/13197270651_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/270/710/13235017072_979836901.jpg\" /><br /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/735/999/13234999537_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/549/252/13197252945_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/409/552/13197255904_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/247/935/13278539742_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/355/845/13278548553_979836901.jpg\" /><br /><br /></p><p><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/917/372/13197273719_979836901.jpg\" /><br /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/969/099/13234990969_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/175/455/13278554571_979836901.jpg\" /></p><p><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/427/386/13314683724_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/331/365/13278563133_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/654/500/13235005456_979836901.jpg\" /><br /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/542/110/13235011245_979836901.jpg\" /><br /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/291/020/13235020192_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/329/635/13278536923_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/996/155/13278551699_979836901.jpg\" /></p><p><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/230/920/13235029032_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/464/972/13197279464_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/380/275/13278572083_979836901.jpg\" /><br /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/999/462/13197264999_979836901.jpg\" /><br /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/868/245/13278542868_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/843/410/13235014348_979836901.jpg\" /><br /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/897/200/13235002798_979836901.jpg\" /><br /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/914/800/13235008419_979836901.jpg\" /><br /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/709/762/13197267907_979836901.jpg\" /><br /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/427/545/13278545724_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/741/003/13197300147_979836901.jpg\" /><br /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/175/710/13235017571_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/410/485/13278584014_979836901.jpg\" /><br /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/863/665/13278566368_979836901.jpg\" /><br /><br /><br /></p>",
		"item_imgs": [
			{
				"url": "https://cbu01.alicdn.com/img/ibank/2020/063/830/13235038360_979836901.jpg"
			},
			{
				"url": "https://cbu01.alicdn.com/img/ibank/2020/445/748/13819847544_979836901.jpg"
			},
			{
				"url": "https://cbu01.alicdn.com/img/ibank/2020/487/543/13234345784_979836901.jpg"
			},
			{
				"url": "https://cbu01.alicdn.com/img/ibank/2020/296/695/13418596692_979836901.jpg"
			},
			{
				"url": "https://cbu01.alicdn.com/img/ibank/2020/167/778/13462877761_979836901.jpg"
			}
		],
		"item_weight": "",
		"post_fee": "",
		"express_fee": "",
		"ems_fee": "",
		"shipping_to": "",
		"video": [],
		"sample_id": "",
		"props_name": "0:0:机身内存:64GB;1:0:颜色:铁灰色;1:1:颜色:瓷白色",
		"prop_imgs": {
			"prop_img": []
		},
		"property_alias": "0:0:64GB;1:0:铁灰色;1:1:瓷白色",
		"props": [
			{
				"name": "品牌",
				"value": "多亲"
			},
			{
				"name": "型号",
				"value": "Qin 2 Pro"
			},
			{
				"name": "手机类型",
				"value": "老人手机"
			},
			{
				"name": "外形",
				"value": "直板"
			},
			{
				"name": "主屏尺寸",
				"value": "大屏幕(5.0英寸—5.9英寸)"
			},
			{
				"name": "网络制式",
				"value": "移动4G(TD-LTE),联通/电信4G(FDD-LTE)"
			},
			{
				"name": "操作系统",
				"value": "Android 9.0系统"
			},
			{
				"name": "电池容量",
				"value": "2100"
			},
			{
				"name": "摄像头像素",
				"value": "1200万-1999万"
			},
			{
				"name": "存储卡",
				"value": "支持存储卡"
			},
			{
				"name": "处理器核心",
				"value": "八核"
			},
			{
				"name": "运行内存",
				"value": "2GB"
			},
			{
				"name": "手机版本",
				"value": "大陆行货"
			},
			{
				"name": "售后类型",
				"value": "全国联保"
			},
			{
				"name": "上市时间",
				"value": "2019"
			},
			{
				"name": "适用送礼场合",
				"value": "员工福利,颁奖纪念,广告促销,节日,展销会,公关策划,生日,商务馈赠"
			},
			{
				"name": "3C证书编号",
				"value": "2019161606319519"
			},
			{
				"name": "CPU品牌",
				"value": "展讯"
			},
			{
				"name": "运营商",
				"value": "中国移动,中国电信,中国联通"
			},
			{
				"name": "网络模式",
				"value": "单卡单模"
			},
			{
				"name": "机身内存",
				"value": "64GB"
			},
			{
				"name": "颜色",
				"value": "铁灰色,瓷白色"
			},
			{
				"name": "电信设备进网许可证编号",
				"value": "02-B613-192425"
			}
		],
		"total_sold": "1",
		"scale": "",
		"sellUnit": "",
		"skus": {
			"sku": [
				{
					"price": "799.00",
					"total_price": 0,
					"sales": "55",
					"properties": "0:0;1:1",
					"properties_name": "0:0:机身内存:64GB;1:1:颜色:瓷白色",
					"quantity": "932",
					"sku_id": "4309097072612",
					"spec_id": "63828b15ad641fdb131775f32e4c050c"
				},
				{
					"price": "799.00",
					"total_price": 0,
					"sales": "159",
					"properties": "0:0;1:0",
					"properties_name": "0:0:机身内存:64GB;1:0:颜色:铁灰色",
					"quantity": "831",
					"sku_id": "4302217872901",
					"spec_id": "0eb631954bfe8fb00a45824fc6193f2f"
				}
			]
		},
		"seller_id": "2206619673102",
		"sales": 30,
		"shop_id": "",
		"props_list": {
			"0:0": "机身内存:64GB",
			"1:0": "颜色:铁灰色",
			"1:1": "颜色:瓷白色"
		},
		"seller_info": {
			"nick": "qin多亲科技",
			"user_num_id": "2206619673102",
			"sid": "b2b-2206619673102e9470",
			"title": "深圳多亲科技实力卖场",
			"zhuy": "https://winport.m.1688.com/page/index.html?memberId=b2b-2206619673102e9470",
			"shop_name": "qin多亲科技"
		},
		"tmall": "",
		"data_from": "1688app",
		"error": "",
		"unit": "部",
		"is_support_mix": null,
		"mix_amount": null,
		"mix_begin": null,
		"mix_number": null,
		"min_num": "2",
		"sales_data": "",
		"location": "广东省 深圳市",
		"props_img": [],
		"sales_info": {
			"seller_num": "",
			"repeat_rate_purchase": "",
			"per_capita_purchases": "",
			"comment_num": "",
			"comment_url": ""
		},
		"desc_img": [
			"https://cbu01.alicdn.com/img/ibank/2020/560/807/14112708065_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/303/507/14112705303_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/499/812/14150218994_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/770/128/14199821077_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/588/942/13197249885_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/778/789/13234987877_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/109/489/13234984901_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/156/072/13197270651_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/270/710/13235017072_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/735/999/13234999537_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/549/252/13197252945_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/409/552/13197255904_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/247/935/13278539742_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/355/845/13278548553_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/917/372/13197273719_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/969/099/13234990969_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/175/455/13278554571_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/427/386/13314683724_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/331/365/13278563133_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/654/500/13235005456_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/542/110/13235011245_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/291/020/13235020192_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/329/635/13278536923_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/996/155/13278551699_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/230/920/13235029032_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/464/972/13197279464_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/380/275/13278572083_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/999/462/13197264999_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/868/245/13278542868_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/843/410/13235014348_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/897/200/13235002798_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/914/800/13235008419_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/709/762/13197267907_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/427/545/13278545724_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/741/003/13197300147_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/175/710/13235017571_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/410/485/13278584014_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/863/665/13278566368_979836901.jpg"
		],
		"shop_item": [],
		"relate_items": []
	},
	"secache": "f75c59301daa3fc1610a8563c998f851",
	"secache_time": 1608276252,
	"secache_date": "2020-12-18 15:24:12",
	"translate_status": "",
	"translate_time": 0,
	"language": {
		"default_lang": "cn",
		"current_lang": "cn"
	},

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:/a/41790.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

Echarts 修改背景颜色、全屏自适应屏幕

修改背景色&#xff1a; 全屏自适应屏幕 首先拿到外面的div的高度 通过DOM获取clientHeight即为无论全屏与否都是DIV的整个高度 在通过高度去做自适应就好了

Redis可视化工具(Redis Desktop Manager)

redis是我们平时开发工作中经常用到的非关系型数据库&#xff0c;常用于做数据缓存&#xff0c;分布式锁等。 为了更方便的使用redi&#xff0c;这里给大家推荐一款可视化工具&#xff1a;Redis Desktop Manager。 1.下载与安装 直接到gihub下载&#xff0c;地址 Release 0.…

搭建Redis主从集群和哨兵

说明&#xff1a;单机的Redis存在许多的问题&#xff0c;如数据丢失问题、高并发问题、故障恢复问题、海量数据的存储能力问题&#xff0c;针对这四个问题&#xff0c;对应解决方式有&#xff1a;数据持久化&#xff08;参考&#xff1a;http://t.csdn.cn/SSyBi&#xff09;、搭…

Stable Diffusion学习笔记

一些零散笔记 批量化生产的时候推荐提高生成批次&#xff0c;不建议提高每批数量 灰常好的模型网站 LiblibAI哩布哩布AI-中国领先原创AI模型分享社区 出图效率倍增&#xff01;47个高质量的 Stable Diffusion 常用模型推荐 - 优设网 - 学设计上优设 关键词Prompt顺序 画质…

16 | 视图:如何实现服务和数据在微服务各层的协作?

目录 服务的协作 1. 服务的类型 2. 服务的调用 微服务内跨层 微服务之间的服务调用 领域事件驱动 3. 服务的封装与组合 基础层 领域层 应用层 用户接口层 4. 两种分层架构的服务依赖关系 松散分层架构的服务依赖 严格分层架构的服务依赖 数据对象视图 基础层 领…

Hugging Face开源库accelerate详解

官网&#xff1a;https://huggingface.co/docs/accelerate/package_reference/accelerator Accelerate使用步骤 初始化accelerate对象accelerator Accelerator()调用prepare方法对model、dataloader、optimizer、lr_schedluer进行预处理删除掉代码中关于gpu的操作&#xff0…

【Zookeeper】

目录 一、Zookeeper 概述1、Zookeeper 定义2、Zookeeper 工作机制3、Zookeeper 特点4、Zookeeper 数据结构5、Zookeeper 应用场景6、Zookeeper 选举机制 二、部署 Zookeeper 集群1.安装前准备1、关闭防火墙2、安装 JDK3、下载安装包 2.安装 Zookeeper1、修改配置文件2、拷贝配置…

CMU 15-445 -- Query Optimization - 10

CMU 15-445 -- Query Optimization - 10 引言Query Optimization TechniquesQuery RewritingPredicate PushdownProjections Pushdown Cost-based SearchCost EstimationStatisticsEquality PredicateRange PredicateNegation QueryConjunction QueryDisjunction QueryJoins直方…

6.6Jmeter远程调度Linux机器Jmeter测试

1、配置Agent和启动 1.1、打开jmeter/bin目录下的jmeter.properties 1、server_port1099取消注释 2、remote_hosts127.0.0.1 改为remote_hosts127.0.0.1:1099 或者是remote_hostsAgent机的ip:1099 3、server.rmi.localport1099 4、server.rmi.ssl.disablefalse改为true&#x…

AtcoderABC245场

A - Good morningA - Good morning 题目大意 给定Takahashi和Aoki的起床时间&#xff0c;判断谁先起床。 思路分析 题目要求比较Takahashi和Aoki的起床时间。首先&#xff0c;将起床时间转换为以分钟为单位。然后&#xff0c;通过比较两者的起床时间来确定谁先起床。 时间复…

30,queue容器

30.1queue基本概念 概念&#xff1a;queue是一种先进先出(First In First Out,FIFO)的数据结构&#xff0c;它有两个出口 队列容器允许从一端新增元素&#xff0c;从另一端移除元素&#xff0c;队列queue符合先进先出 队列中只有对头和队尾才可以被外界使用&#xff0c;因此队…

HarmonyOS应用开发-第一章-DevEco Studio的安装

一、前言 本栏可以帮助正在学习HarmonyOS应用开发的开发者快速上手和掌握。 二、安装步骤 首先下载DevEco Studio&#xff08;HarmonyOS应用的集成开发境&#xff09;&#xff0c;点击&#xff1a;IDE下载页面&#xff0c;点击立即下载。 下载完成后&#xff0c;双击运行安装程…

IntelliJ IDEA 忽略Git提交

在项目下新建 .gitignore 文件 在 .gitignore 文件写入以下内容&#xff0c;从上图可以看到&#xff0c;忽略提交的这些目录/文件变成了黄色

Java8 stream toMap、groupingBy、mapping的综合应用

文章目录 一、stream toMap、groupingBy、mapping的综合应用1、前提准备①、实体类②、数据准备 2、核心代码&#xff1a;3、运行结果 一、stream toMap、groupingBy、mapping的综合应用 1、前提准备 ①、实体类 package com.cfay.demo;import lombok.AllArgsConstructor; i…

中间件上云部署 zookeeper

中间件上云部署 zookeeper 企业级中间件上云部署 zookeeper一、环境说明二、zookeeper部署YAML资源清单准备三、zookeeper部署及部署验证四、zookeeper应用验证 企业级中间件上云部署 zookeeper 一、环境说明 storageclassingress 二、zookeeper部署YAML资源清单准备 # vim…

【Spring】Spring AOP入门及实现原理剖析

文章目录 1 初探Aop1.1 何为AOP&#xff1f;1.2 AOP的组成1.2.1 切面(Aspect)1.2.2 连接点(Join Point)1.2.3 切点(Pointcut)1.2.4 通知(Advice) 1.3 AOP的使用场景 2 Spring AOP入门2.1 添加 Spring AOP 框架⽀持2.2 定义切面和切点2.3 定义相关通知 3 Spring AOP实现原理3.1 …

pyqt 使用pixmap展示图片时候出现失真(图片偏移)

像上图上面的情况&#xff0c; 都是经过放大、旋转等操作&#xff0c;展示图片的时候出现失真的情况 一般都是显卡的问题 需要在qimage转pixmap时&#xff0c;添加部分参数 修改办法&#xff1a; 原本是&#xff1a; pixMap QImage(self.pic_image, width, height, QImage…

iOS APP外包开发的语言比较

iOS APP是Apple公司运行在iPhone手机上的APP&#xff0c;开发这样的APP有两种开发语言可以选择&#xff0c;都是由Apple公司提供的语言。其中Objective-C使用时间相对较长&#xff0c;有历史兼容考虑&#xff0c;而Swift是新的开发语言&#xff0c;更符合近些年开发语言的发展理…

基于单片机水质检测系统的设计与实现

功能介绍 以STM32单片机作为主控系统&#xff1b;液晶显示当前参数&#xff1b;PH模块采集当前水质PH酸碱度&#xff1b;DS18B20温度传感器采集当前水体温度&#xff1b;TDS传感器采集当前水体TDS值&#xff1b;浊度传感器采集当前水体浑浊度&#xff1b;按键设置PH、温度、TDS…

unity02 物体运动

旋转&#xff0c;增量旋转&#xff0c;默认增量为15度 ctrl拖拽物体旋转 设置增量旋转角度大小 edit–>grid and snap settings privot 轴心坐标系&#xff08;中心坐标系&#xff09;默认 local 世界坐标系&#xff08;局部坐标系&#xff09; ctrlD复制物体 物体激活&…