netcore 注册httpclient出现异常

原因uri地址必须写上http://
services.AddScoped(sp => new HttpClient
{
BaseAddress = new Uri(uriString: "http://192.168.1.6:7777")
});

posted @ 2022-11-08 16:59  wei_june  阅读(68)  评论(0)    收藏  举报