Closed micross closed 1 day ago
版本 0.72.1,用一下代码可测试:
use salvo::prelude::*; #[handler] async fn hello() -> &'static str { "Hello World" } #[tokio::main] async fn main() { tracing_subscriber::fmt().init(); let router = Router::new().get(hello); let acceptor = TcpListener::new("127.0.0.1:5800").bind().await; Server::new(acceptor).serve(router).await; }
已经修复,版本 0.72.2
版本 0.72.1,用一下代码可测试: