会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
bitterteaer
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
···
18
下一页
2023年7月25日
scrapy
摘要: https://gitee.com/bitterteaer/scrapy-learn.git 在代码中运行scrapy的方法 @https://www.cnblogs.com/kakashiS/p/7475742.html 官方文档给出了两个scrapy工具: scrapy.crawler.Craw
阅读全文
posted @ 2023-07-25 22:18 bitterteaer
阅读(19)
评论(0)
推荐(0)
2023年7月23日
celery
摘要: https://gitee.com/bitterteaer/celery-learn.git Celery的架构由三部分组成,消息中间件(message broker),任务执行单元(worker)和任务执行结果存储(task result store)组成。 基本使用 celery_task im
阅读全文
posted @ 2023-07-23 14:45 bitterteaer
阅读(22)
评论(0)
推荐(0)
2023年7月20日
appsmith使用第三方库进行http请求
摘要: ### 安装  ### 使用 ```js export default { debugMeter: asy
阅读全文
posted @ 2023-07-20 15:20 bitterteaer
阅读(49)
评论(0)
推荐(0)
2023年7月15日
sqlalchemy created_at字段自动生成当前时间写法
摘要: ```python created_at = Column(Integer, nullable=False, default=lambda: int(time.time())) ``` 使用lambda即可使其实时生成,如果不使用lambda,则无法实时获取时间,只会记录第一次的时间
阅读全文
posted @ 2023-07-15 15:16 bitterteaer
阅读(154)
评论(0)
推荐(0)
使用fastapi background task踩的第一个坑
摘要: ### 场景复原(这份代码可以和我之前的业务产生同样的效果) ```python async def task(): print("1......") time.sleep(5) print("ok") @router.post("/1") async def crate(background_ta
阅读全文
posted @ 2023-07-15 00:56 bitterteaer
阅读(770)
评论(1)
推荐(0)
2023年7月14日
go国内代理
摘要: GOPROXY=https://goproxy.cn,direct
阅读全文
posted @ 2023-07-14 22:43 bitterteaer
阅读(108)
评论(0)
推荐(0)
2023年7月12日
FastAPI提供了多种安全性机制,包括OAuth2、API密钥等。例如,我们可以使用API密钥保护我们的API
摘要: ```python from fastapi.security import APIKeyHeader api_key_header = APIKeyHeader(name="api_key") @app.get("/items/{item_id}", response_model=Item) de
阅读全文
posted @ 2023-07-12 15:27 bitterteaer
阅读(81)
评论(0)
推荐(0)
2023年7月9日
Hystrix-结构图
摘要: 
阅读全文
posted @ 2023-07-09 00:25 bitterteaer
阅读(18)
评论(0)
推荐(0)
2023年7月1日
在 Kubernetes(k8s) 上部署 Spring Boot 应用程序:应用程序使用环境变量中的错误端口属性
摘要: ### 如果我使用此配置启动部署(即先启动服务,然后启动部署)则 pod 在启动期间会失败。 在日志中,我可以找到以下消息: ```shell *************************** APPLICATION FAILED TO START **********************
阅读全文
posted @ 2023-07-01 20:15 bitterteaer
阅读(87)
评论(0)
推荐(0)
2023年6月20日
sqlalchemy: pool_pre_ping
摘要: ### 问题 设想这样一个场景:通过flask启动了一个REST服务,该服务需要访问数据库,且每天被定时请求一次(除此之外无请求)。 按照上一节的讨论,由于两次请求间隔(24小时)超过了关闭阈值(8小时),因此在下一次发送请求时,会报出Lost connection的错误。 ### 解决方案 ```
阅读全文
posted @ 2023-06-20 17:02 bitterteaer
阅读(419)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
12
13
···
18
下一页
公告