netcore 注册httpclient出现异常
原因uri地址必须写上http://
services.AddScoped(sp => new HttpClient
{
BaseAddress = new Uri(uriString: "http://192.168.1.6:7777")
});
原因uri地址必须写上http://
services.AddScoped(sp => new HttpClient
{
BaseAddress = new Uri(uriString: "http://192.168.1.6:7777")
});