{ "AllowedHosts": "*", // 配置扫描目录 "Kestrel": { "Endpoints": { "Http": { "Url": "http://localhost:5000" } } }, "ConfigurationScanDirectories": [ "Configurations" ] }