Gin框架设置静态资源映射

鬼谷子叔叔 - 2025-01-20 16:01

设置静态资源映射

g := gin.Default()
g.Static("/js", "./js")
g.Static("/css", "./css")
g.Run()