Indi
ZoDream's Blog zodream.cn

关于路由 路由 ` 和 /` 可以分开作为两个路由, 但是如果只有一个,就会把没注册的那个重定向到注册的那个 r := gin.Default() r.GET("/home", Index) r.GET("/home/", Abount) 这种方法时有效的 如果只注册一个 r := gin.Default() r.GET("/home", Index) 浏览器访问 http://localhost…

讨论

还没有评论,来说第一句吧。

ZoDream's Blog 的其他文章