添加配置说明

This commit is contained in:
Minho 2017-05-03 15:05:01 +08:00
parent 50bf601176
commit d3288afdc9
2 changed files with 14 additions and 2 deletions

View File

@ -8,10 +8,19 @@ copyrequestbody = true
#默认Session生成Key的秘钥
beegoserversessionkey=123456
#Session储存方式
########Session储存方式##############
#以文件方式储存
sessionprovider=file
sessionproviderconfig=./logs
#以redis方式储存
#sessionprovider=redis
#sessionproviderconfig=127.0.0.1:6379
#以memcache方式储存
#sessionprovider=memcache
#sessionproviderconfig=127.0.0.1:11211
#以内存方式托管Session
#sessionprovider=memory
#时区设置
timezone = Asia/Shanghai

View File

@ -3,6 +3,9 @@ package main
import (
_ "github.com/go-sql-driver/mysql"
_ "github.com/lifei6671/godoc/routers"
_ "github.com/astaxie/beego/session/redis"
_ "github.com/astaxie/beego/session/memcache"
_ "github.com/astaxie/beego/session/mysql"
"github.com/astaxie/beego"
"github.com/lifei6671/godoc/commands"
"fmt"