代码改变世界

Identity Server (四) credential 模式

2022-02-14 07:24 by qgbo, 38 阅读, 0 推荐, 收藏, 编辑
摘要:1. 按照这个文档,建立 client, api, Identity server 3个项目。 2 Client 可以根据获取到的Accesstoken 访问API 3. 用 Post man 获取 Accesstoken : 新建请求,url: https://localhost:5001/con 阅读全文

.Netcore 源码

2021-12-11 07:37 by qgbo, 154 阅读, 0 推荐, 收藏, 编辑
摘要:CreateHostBuilder(args).Build().Run(); 1. Host.CreateDefaultBuilder().ConfigureWebHostDefalut(wb=>{wb.UseStartup<Startup>()}); 1. Host.CreateDefaultBu 阅读全文

继承和组合

2021-12-11 07:27 by qgbo, 40 阅读, 0 推荐, 收藏, 编辑
摘要:继承和组合都可以让一个类有另一个类的功能。 继承是 is-a 的关系,新类有父类的所有属性 组合包含了原有类,生成的新类,可以屏蔽原有类的某些细节。 TRANSLATE with x English Arabic Hebrew Polish Bulgarian Hindi Portuguese Ca 阅读全文

Angular 依赖注入

2021-12-07 09:07 by qgbo, 37 阅读, 0 推荐, 收藏, 编辑
摘要:Angular 依赖注入 和.NetCore 的对比: Angular .Netcore Example Injector ServiceProvider constructor(injector: Injector) { this.localization = injector.get(Local 阅读全文

JS # hash

2021-12-05 19:52 by qgbo, 62 阅读, 0 推荐, 收藏, 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <meta name="viewport" content="width=device-width, initial-scale=1 阅读全文

http 代理

2021-12-05 11:34 by qgbo, 120 阅读, 0 推荐, 收藏, 编辑
摘要:一: 安装Application Request Routing 二; 设置 Application Request Routing: 三: 建立站点代理: <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServe 阅读全文

计算机网络

2021-12-02 07:01 by qgbo, 32 阅读, 0 推荐, 收藏, 编辑
摘要:一 数据链路层: 物理层更多的是硬件的连接,规定0/1 延时的时长,比特率等,数据可以传过去。 链路层主要做了: ①: 数据封包成帧,带上帧头帧尾,数据校验。 PPP 协议是点到点,因此没有地址。 以太网协议,会有MAC 地址。 实际上会有多台计算机连起来,用到集线器之类的,就会有一个发送,多个接收 阅读全文

单例

2021-11-28 22:18 by qgbo, 11 阅读, 0 推荐, 收藏, 编辑
摘要:public class Singleton { public static Singleton Instance= new Singleton(); public int Id { get ; set ; } private Singleton() { } public int Name { ge 阅读全文

docker--.netcore

2021-10-31 21:28 by qgbo, 81 阅读, 0 推荐, 收藏, 编辑
摘要:1. 安装docker:2. 安装 dotnet: sudo yum install dotnet-sdk-5.0 3. mkdir webapi && cd webapi && dotnet new webapi && dotnet build && dotnet bin/Debug/net5.0 阅读全文

Jenkins,maven 等

2021-10-10 17:49 by qgbo, 32 阅读, 0 推荐, 收藏, 编辑
摘要:1. https://www.jenkins.io/download/ https://hub.docker.com/r/jenkins/jenkins https://github.com/jenkinsci/docker/blob/master/README.md docker run -d - 阅读全文
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 21 下一页