更新 appsettings.json 設定檔
移除 `AllowedHosts` 的一行,並新增 `ConnectionStrings` 設定,包含 `DefaultConnection` 的連接字串,以便應用程式能夠連接到指定的資料庫。
This commit is contained in:
parent
2b8df04ece
commit
3af7cdcaa4
@ -5,5 +5,8 @@
|
|||||||
"Microsoft.AspNetCore": "Warning"
|
"Microsoft.AspNetCore": "Warning"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"AllowedHosts": "*"
|
"AllowedHosts": "*",
|
||||||
|
"ConnectionStrings": {
|
||||||
|
"DefaultConnection": "Server=localhost;Database=xisong_space_booking;User=root;Password=00000000;CharSet=utf8mb4;AllowUserVariables=true;UseAffectedRows=false;"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user