
.Net Core
望天hous
虚心学习
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
asp.netcore 使用 IdentityServer4 版本4.1.2报错 No scopes found in request
我使用的是postMan请求的 如图 出现报错原因是在服务端: 我使用的是客户端简单方式 配置如下 using IdentityServer4; using IdentityServer4.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace WebApplication_IdentityServer4_SampleTest .原创 2022-01-23 15:19:23 · 524 阅读 · 0 评论 -
netcore服务启动去监听的ip和端口号
在startup的 config 方法中 string? listenUrl = app.ServerFeatures.Get<IServerAddressesFeature>().Addresses.FirstOrDefault();原创 2021-11-28 18:48:54 · 2327 阅读 · 0 评论 -
C# 中的Microsoft.AspNetCore.Mvc.ModelBinding 通用代码
在ASPnetcore 写控制器时候要进行数据转化,例如 1,2,3 =》 list 这个方法正好可以帮助您 using Microsoft.AspNetCore.Mvc.ModelBinding; using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Reflection; using System.Threading.Tasks; nam转载 2021-04-18 18:08:47 · 743 阅读 · 0 评论