[backend] docs: 更新README,注释init_db用于测试环境
This commit is contained in:
+2
-1
@@ -77,7 +77,8 @@ async def validation_exception_handler(request: Request, exc: RequestValidationE
|
||||
|
||||
@app.on_event("startup")
|
||||
async def startup_event():
|
||||
await init_db()
|
||||
# await init_db() # 注释掉,MySQL需要配置后再启用
|
||||
pass
|
||||
|
||||
|
||||
@app.get("/")
|
||||
|
||||
Reference in New Issue
Block a user