一、NuGet 包
注意:本文基于 .NET 9,包版本需匹配,过大或过小可能导致 WebAPI 无法运行。


二、配置文件
1. appsettings.json
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*",
"Nacos": {
"ServerAddresses": ["http://localhost:8848/"],
"Namespace": "",
"UserName": "nacos"


