init with beego.