.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 · 467 阅读 · 0 评论 -
netcore服务启动去监听的ip和端口号
在startup的 config 方法中string? listenUrl = app.ServerFeatures.Get<IServerAddressesFeature>().Addresses.FirstOrDefault();原创 2021-11-28 18:48:54 · 2240 阅读 · 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 · 682 阅读 · 0 评论