http.PathPrefix("/").Handler(http.StripPrefix("/", http.FileServer(http.Dir("./view/static/"))))
解决golang 访问静态文件http.FileServer 404 问题
最新推荐文章于 2022-07-19 16:36:08 发布
http.PathPrefix("/").Handler(http.StripPrefix("/", http.FileServer(http.Dir("./view/static/"))))