gpt4 book ai didi

dart - 使用 "pub serve",我如何提供根资源?

转载 作者:行者123 更新时间:2023-12-03 03:03:01 24 4
gpt4 key购买 nike

我正在使用“pub serve”为我的 Dart 网络应用程序提供服务。酒吧在 http://localhost:8080/ 运行.

我可以通过 http://localhost:8080/index.html 访问我的应用程序加载 index.html web 中的文件我项目中的目录。

我希望能够加载相同的 index.html直接来自 http://locahost:8080/ .我该如何完成这项任务?

最佳答案

关于dart - 使用 "pub serve",我如何提供根资源?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21342852/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com