会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
KillerTwo
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2022年11月6日
批量删除github仓库
摘要: github查询仓库列表api: $ curl \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ https://api.github.com/users/USERNAME/r
阅读全文
posted @ 2022-11-06 01:32 我爱这世间美貌女子
阅读(125)
评论(0)
推荐(0)
2022年8月31日
Python系统函数文件操作
摘要: 一、文件 用open创建文件 import os fout = open('ops.txt', 'wt') fout.close() 用exists()检查文件或目录是否存在 传入绝对路径或者相对路径,存在返回True不存在返回False import os os.path.exists('opt.
阅读全文
posted @ 2022-08-31 22:21 我爱这世间美貌女子
阅读(87)
评论(0)
推荐(0)
2022年8月30日
gradle多模块项目打包依赖拆分
摘要: 一、目录结构 . ├── boogle-common │ ├── build.gradle.kts │ └── src ├── boogle-core │ ├── build.gradle.kts │ └── src ├── boogle-generator │ ├── build.gradle.k
阅读全文
posted @ 2022-08-30 22:17 我爱这世间美貌女子
阅读(784)
评论(0)
推荐(0)
2022年8月28日
使用Gradle构建spring-boot多模块项目
摘要: 一、目录结构 . ├── boogle-common │ ├── build.gradle.kts │ └── src ├── boogle-core │ ├── build.gradle.kts │ └── src ├── boogle-generator │ ├── build.gradle.k
阅读全文
posted @ 2022-08-28 14:48 我爱这世间美貌女子
阅读(1095)
评论(0)
推荐(0)
2022年8月21日
django rest framework快速使用
摘要: 一、安装相关的依赖 $ pip install djangorestframework $ pip install markdown # Markdown support for the browsable API. $ pip install django-filter # Filtering s
阅读全文
posted @ 2022-08-21 00:09 我爱这世间美貌女子
阅读(71)
评论(0)
推荐(0)
2022年7月2日
设计模式之禅阅读笔记之6大设计原则
摘要: 一、设计模式之单一之责原则 定义 单一之责原则的定义是:有且仅有一个原因引起类或接口的变更。 反例 电话通话有4个过程:拨号、通话、回应、挂断,代码实现如下: public interface IPhone { // 拨通电话 void dial(); // 通话 void chat(); // 通
阅读全文
posted @ 2022-07-02 21:15 我爱这世间美貌女子
阅读(74)
评论(0)
推荐(0)
2022年6月29日
golang、gin、gorm、casbin访问权限控制
摘要: Casbin configuration rbac_model.conf [request_definition] r = sub, obj, act [policy_definition] p = sub, obj, act [role_definition] g = _, _ [policy_e
阅读全文
posted @ 2022-06-29 00:40 我爱这世间美貌女子
阅读(1014)
评论(0)
推荐(0)
2022年6月6日
openid 客户端认证方法(Client Authentication methods)简介
摘要: client_secret_basic 调用授权服务器token端点,添加Authorization header,值为client_id:client_secret Base64编码后的值,grant_type=client_credentials client_secret_post 调用授权服
阅读全文
posted @ 2022-06-06 23:36 我爱这世间美貌女子
阅读(1097)
评论(0)
推荐(0)
2022年5月30日
自制Spring-boot Starter
摘要: 新建Spring boot项目 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.7.0</version> <rel
阅读全文
posted @ 2022-05-30 23:39 我爱这世间美貌女子
阅读(97)
评论(0)
推荐(0)
2022年5月28日
Spring Security SavedRequestAwareAuthenticationSuccessHandler类
摘要: SavedRequestAwareAuthenticationSuccessHandler类是SpringSecurity提供的登录成功处理器,登录成功后该处理器会从Session中获取认证之前访问的url,然后将用户重定向到该url地址, 设置认证之前的url RequestCache.java
阅读全文
posted @ 2022-05-28 23:46 我爱这世间美貌女子
阅读(443)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告