1 Star 0 Fork 2

乐登/moshop_go_micro

forked from YIN JIAYI/moshopserver 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.go 511 Bytes
一键复制 编辑 原始数据 按行查看 历史
tianming 提交于 2020-06-01 17:12 . travis 调整
package main
import (
"github.com/astaxie/beego"
_ "moshopserver/models"
_ "moshopserver/routers"
"moshopserver/services"
_ "moshopserver/utils"
)
func main() {
beego.BConfig.WebConfig.AutoRender = false
beego.BConfig.CopyRequestBody = true
beego.BConfig.WebConfig.Session.SessionOn = true
beego.BConfig.Listen.HTTPAddr = ""
beego.BConfig.Listen.HTTPPort = 8089
beego.InsertFilter("/api/*", beego.BeforeExec, services.FilterFunc, true, true)
beego.Run() // listen and serve on 0.0.0.0:8080
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/unvs/moshop_go_micro.git
git@gitee.com:unvs/moshop_go_micro.git
unvs
moshop_go_micro
moshop_go_micro
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385