diff --git a/main.go b/main.go index d427f76bc..2deb1a116 100644 --- a/main.go +++ b/main.go @@ -72,5 +72,10 @@ func main() { beego.SetStaticPath("/files/init-images", "others/init_images") // 静态文件路径 beego.SetStaticPath("/files", "files") + + beego.BConfig.CopyRequestBody = true + beego.BConfig.WebConfig.Session.SessionOn = true + beego.BConfig.WebConfig.AutoRender = false + beego.Run(":9999") }