beego 框架和beego工具是两个东西,beego工具安装的命令老师没有敲
//beego 框架
go get -u github.com/astaxie/beego
//beego 工具
go get -u github.com/beego/bee
查看版本
bee version
//beego 框架
go get -u github.com/astaxie/beego
//beego 工具
go get -u github.com/beego/bee
查看版本
bee version
2018-11-16
最赞回答 / 慕运维201543
bee generate scaffold user -fields="id:int64,name:string,gender:int,age:int" -driver=mysql -conn="root:123@tcp(127.0.0.1:3306)/imooc"其中:user 是指数据表名-fields=后面的id:int64,name:string,gender:int,age:int根据自己创建的user表字段来-driver=数据库类型 选项有 mysql /oracle/sql 等conn="...
2018-11-15
bee run后报错
register db Ping `default`, Error 1045: Access denied for user 'root'@'localhost' (using password: NO)
register db Ping `default`, Error 1045: Access denied for user 'root'@'localhost' (using password: NO)
2018-10-30