beego自动生成swagger API接口
时间:2019-10-14 15:58:11
收藏:0
阅读:303
执行bee run -gendoc=true -downdoc=true 生成接口失败
因为src\github.com\astaxie\beego\logs下面缺少AccessLogRecord结构体所在的文件
下载文件地址在https://github.com/s1377427321/myServer/tree/master/src/github.com/astaxie/beego/logs
把下载下来的文件accesslog.go拷贝到你的gopath下面的src/github.com/astaxie/beego/logs目录下,然后再执行bee run -gendoc=true -downdoc=true,服务启动成功
网页查看效果:http://127.0.0.1:8080/swagger/
原文:https://www.cnblogs.com/wode123/p/11671447.html
评论(0)