更新 appsettings.json 設定檔

移除 `AllowedHosts` 的一行,並新增 `ConnectionStrings` 設定,包含 `DefaultConnection` 的連接字串,以便應用程式能夠連接到指定的資料庫。
This commit is contained in:
Chen, Chun-Yi 2025-09-30 11:03:18 +08:00
parent 2b8df04ece
commit 3af7cdcaa4

View File

@ -5,5 +5,8 @@
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*"
"AllowedHosts": "*",
"ConnectionStrings": {
"DefaultConnection": "Server=localhost;Database=xisong_space_booking;User=root;Password=00000000;CharSet=utf8mb4;AllowUserVariables=true;UseAffectedRows=false;"
}
}