惊风破浪的博客
PHP
MySQL
Redis
Linux
算法与设计模式
杂项
Golang
登录
Golang的Beego框架搭建和使用
1个月前 ⋅
0
##### Beego搭建 - 安装 go get -u github.com/astaxie/beego - 阿里云镜像 go env -w GO111MODULE=on go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/,direct bee工具 go get github.com/beego/bee - 创建项目bee new demo - 启动项目 bee run //热重启 - bee pack 打包项目 `可能会启动失败,解决办法,切换到项目目录运行 go run main.go` ##### Beego mvc运行流程 目录结构 - conf - app.conf - controller //控制器 - default.go - models //模型 - routers - router.go //路由配置 - static - tests - views - main.go `先从main.go加载,run方法`
回复
发布文章
友情链接
Mr.Zhu
Swoole
PHP官网
菜鸟教程
Go语言中文网
implode
数据结构与算法