• 首页
  • tfphp
  • tfhtml
  • 小工具
  • 登录
  • 注册

Gin框架设置静态资源映射

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

设置静态资源映射

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


鬼谷子叔叔
跟福哥学编程吧~~
1626
212
13

相关文章推荐

  • 将SpringBoot项目发布到Docker里的Tomcat服务器的方法【20211119】 阅读:111
  • Python在selenium里面注入JavaScript程序的方法【20210815】 阅读:290
  • JavaScript实现URL编码、Base64编码、MD5编码的方法【20210501】 阅读:109
  • Python处理日期和时间【20201016】 阅读:154
  • PHP做个用户管理系统(10)重新设计数据表和字段【20201126】 阅读:39
  • Phpstorm 2019 激活码(不断更新) 阅读:56
  • JavaScript里日期和时间的使用 阅读:32
  • 在 IntelliJ 里通过指定 application.properties 来启动 SpringBoot 项目 阅读:256
  • OkHttp学习笔记 阅读:45
  • 在Windows 2008 Server R2安装IIS服务 阅读:19
京公安备案11010602103556号 京ICP备18054497号 ©2021 同福网
X