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
331 B
Go
17 lines
331 B
Go
|
9 months ago
|
package main
|
||
|
|
|
||
|
|
import (
|
||
|
|
_ "weather/apps"
|
||
|
|
_ "weather/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()
|
||
|
|
}
|