上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 82 下一页
摘要: 在国内访问国外的Docker镜像源通常都是非常慢的,特别是最近GFW升级后,就变得更加慢了,因为要使用Docker中的镜像,这个时候最好就是将镜像指向国内的资源。 国内可用的几个镜像源: Docker 官方中国区:https://registry.docker-cn.com 网易:http://hu 阅读全文
posted @ 2022-08-12 11:27 lshan 阅读(3394) 评论(0) 推荐(0) 编辑
摘要: 原文:https://www.cnblogs.com/traditional/p/14733610.html#5089657 这次我们来聊一聊 FastAPI,它和我们之前介绍的 Sanic 是类似的,都是 Python 中的异步 web 框架。相比 Sanic,FastAPI 更加的成熟、社区也更 阅读全文
posted @ 2022-08-12 10:10 lshan 阅读(2652) 评论(0) 推荐(0) 编辑
摘要: 像java 一样使用swagger UI 使用示例: #!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Time : 8/10/22 3:10 PM # @Author : Sea # @File : bxBlogScripy.py # @mail: 阅读全文
posted @ 2022-08-11 10:18 lshan 阅读(704) 评论(0) 推荐(0) 编辑
摘要: java 作为客户端 依赖: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</artifactId> </dependency> import co 阅读全文
posted @ 2022-08-09 15:42 lshan 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 场景:用于接口请求参数幂等,基于请求参数判断在3s(interval)时间内是否重复提交,重复提交,则直接返回 {"code":2500,"message":"重复提交"} EVN : springboot 2.3.12 + jdk8 使用: 1.(在需要做类似幂等的接口加上注解)@AvoidRes 阅读全文
posted @ 2022-08-05 10:50 lshan 阅读(57) 评论(0) 推荐(0) 编辑
摘要: /** * 目的: 自定义切片,防止表单重复提交, 尤其是服务间调用,retry,防止重复提交数据 * 1. 表单提交时 , 优先获取 一个token * 2. 提交表单时, 携带token 请求头 (header name: rdtc_token) * 3. 如果重复提交,响应: 重复提交 {"c 阅读全文
posted @ 2022-08-02 19:51 lshan 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 项目搭建见: 分布式事务( XA) -- seata eurake springboot mysql (1.4.2) https://www.cnblogs.com/lshan/p/16533280.html 官网示例代码: https://github.com/seata/seata-sample 阅读全文
posted @ 2022-08-01 18:19 lshan 阅读(185) 评论(0) 推荐(0) 编辑
摘要: Redisson分布式锁的使用 1.依赖: <!-- 原生,本章使用--> <dependency> <groupId>org.redisson</groupId> <artifactId>redisson</artifactId> <version>3.13.6</version> </depen 阅读全文
posted @ 2022-08-01 09:51 lshan 阅读(1187) 评论(0) 推荐(0) 编辑
摘要: 官网文档: https://seata.io/zh-cn/docs/user/configurations.html官网示例代码: https://github.com/seata/seata-samples 1. 下载 : https://github.com/seata/seata/releas 阅读全文
posted @ 2022-07-29 18:58 lshan 阅读(177) 评论(0) 推荐(0) 编辑
摘要: java 实现 类似 reids nx锁 , 模拟秒杀操作 依赖: <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>23.0</version> </dependency 阅读全文
posted @ 2022-07-26 16:13 lshan 阅读(36) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 82 下一页