Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
November-12 committed Nov 3, 2023
1 parent 0cbaa5f commit d1f104c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

0 comments on commit d1f104c

Please sign in to comment.