一、NuGet 包
注意:请根据实际 .NET 版本调整包兼容性,版本过大或过小可能导致 WebAPI 无法运行。
二、配置文件
1. appsettings.json
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*",
"Nacos": {
"ServerAddresses": [ "http://localhost:8848/" ],
"Namespace": "",
"UserName": "nacos",
"Password": "nacos",
"ContextPath": "/nacos",
"LogLevel": "Debug"

