main.go 220B

1234567891011121314151617
  1. package main
  2. import (
  3. _ "Xcx_New/routers"
  4. "Xcx_New/service"
  5. "github.com/astaxie/beego"
  6. )
  7. func init() {
  8. service.ConnectDB()
  9. }
  10. func main() {
  11. beego.BConfig.WebConfig.Session.SessionGCMaxLifetime = 60
  12. beego.Run()
  13. }