【发布时间】:2021-04-29 16:05:07
【问题描述】:
在 ASP Net Core Web 应用程序中,您可以在 appsettings.json 中以两种不同的方式设置应用程序将侦听的 URL:
1)
{
"Kestrel": {
"Endpoints": {
"Http": {
"Url": "http://localhost:9999"
}
}
}
}
{
"Urls": "http://localhost:9999"
}
这两种方法有什么区别以及它们存在的原因?
【问题讨论】:
标签: asp.net-core .net-core configuration kestrel-http-server