首页 > 其他分享 >FastAPI.3

FastAPI.3

时间:2023-08-29 14:36:07浏览次数:30  
标签:INFO 127.0 0.1 demo 应用程序 FastAPI.3 fastapi

FastApi 3

一、怎么理解FastAPI应用程序运行产生的日志

(fastapi_demo) PS D:\Program Files\fastapi_demo> uvicorn main:app --reload
INFO:     Will watch for changes in these directories: ['D:\\Program Files\\fastapi_demo']
# FastAPI将监视的文件夹,以便在文件更改时重新加载应用程序。
INFO:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
# 正在监听本地主机上的8000端口。
INFO:     Started reloader process [10068] using StatReload
# 重新加载进程已经启动。
INFO:     Started server process [31272]
# 服务器进程已经启动。
INFO:     Waiting for application startup.
# 正在等待应用程序启动。
INFO:     Application startup complete.
# 应用程序已经启动完成。
INFO:     127.0.0.1:63008 - "GET / HTTP/1.1" 200 OK
# 收到来自IP地址为127.0.0.1,端口为63008的请求,并返回了200状态码。
INFO:     127.0.0.1:63010 - "GET /items/5?q=somequery HTTP/1.1" 404 Not Found
# 收到来自IP地址为127.0.0.1,端口为63010的请求,但未找到相应的路由处理程序,因此返回了404状态码。

标签:INFO,127.0,0.1,demo,应用程序,FastAPI.3,fastapi
From: https://www.cnblogs.com/Zhang614/p/17664650.html

相关文章