摘要: 创建identityserver项目 创建新项目 dotnet new webapi --name ids4 安装IdentityServer4 dotnet add package IdentityServer4 --version 3.1.0 在startup.cs中代码修改如下 public 阅读全文
posted @ 2020-05-31 17:07 Cody& 阅读(455) 评论(1) 推荐(0)
摘要: 创建 重新创建一个项目 dotnet new webapi --name gateway 安装ocelot dotnet add package Ocelot --version 15.0.6 在startup.cs的Configure类中注释其它代码,然后添加 app.UseOcelot(); 在 阅读全文
posted @ 2020-05-31 14:06 Cody& 阅读(307) 评论(0) 推荐(0)
摘要: ubuntu安装 wget https://releases.hashicorp.com/consul/1.7.3/consul_1.7.3_linux_amd64.zip unzip consul_1.7.3_linux_amd64.zip (需安装sudo apt-get install unz 阅读全文
posted @ 2020-05-26 20:35 Cody& 阅读(236) 评论(0) 推荐(0)
摘要: 使用: dotnet core 3.1 创建项目 创建valueController 在ubuntu上运行 然后 编译,压缩成.zip,使用xshell把文件传到linux 输入 (需安装),选择压缩包上传 解压 ,删除 如dotnet sdk没安装,请参考官网:https://docs.micro 阅读全文
posted @ 2020-05-24 20:47 Cody& 阅读(290) 评论(0) 推荐(0)
摘要: 爬取图片 创建 安装 阅读全文
posted @ 2020-05-24 10:50 Cody& 阅读(524) 评论(0) 推荐(0)
摘要: AuthServer配置信息存数据库 打开之前创建的AuthServer项目 安装IdentityServer4.EntityFramework 使用sqlite存储配置 安装 在appsettings.json文件添加 在startup.cs文件中 类中代码修改如下: 添加 将以下代码 替换成 然 阅读全文
posted @ 2020-05-03 19:37 Cody& 阅读(289) 评论(0) 推荐(0)
摘要: 该项目使用dotnet版本3.1 ,vs code创建 创建Web MVC项目 创建命令 dotnet new mvc --name WebMvc 修改./properties/launchSettings.json "profiles": { "WebApi": { "commandName": 阅读全文
posted @ 2020-04-28 19:57 Cody& 阅读(509) 评论(1) 推荐(0)
摘要: 该项目使用dotnet版本3.1 ,vs code创建 创建Web Api项目 创建命令 修改./properties/launchSettings.json 运行下面命令安装 在startup.cs文件的configureservices添加 在startup.cs文件的configure添加 在 阅读全文
posted @ 2020-04-28 19:44 Cody& 阅读(220) 评论(0) 推荐(0)
摘要: 该项目使用dotnet版本3.1 ,vs code创建 创建AuthServer项目 首先命令安装模版 创建AuthServer 在cnfig.cs文件修改 下图 画线部分(使用用户名密码) 然后运行项目,在浏览器输入http://localhost:5000/打开IdentityServer4页面 阅读全文
posted @ 2020-04-28 19:41 Cody& 阅读(324) 评论(0) 推荐(1)
摘要: 自定義Attribute 使用dotnet core 2.1 第一種 然後就可以使用Permission 第二種 在startup的configureservice添加 阅读全文
posted @ 2020-04-20 22:50 Cody& 阅读(2317) 评论(0) 推荐(1)