error:
Beego 中c.TplNames undefined (type *UserController has no field or method TplNames)
fix:
Beego升级问题
go get -u github.com/beego/bee
go get -u github.com/astaxie/beego
bee fix
error:
must have one register DataBase alias named default
fix:
很有可能是你在main.go中没有导入 _ "xx/models"
数据层的包
以便开启models文件夹中的初始化方法