You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
337 B
Go

package main
import (
_ "weather_go/apps"
_ "weather_go/routers"
"github.com/astaxie/beego"
)
func main() {
//开启Session 用memory保存
//beego.BConfig.WebConfig.Session.SessionOn = true
//beego.BConfig.WebConfig.Session.SessionGCMaxLifetime = 60
//beego.BConfig.WebConfig.Session.SessionCookieLifeTime = 60
beego.Run()
}