在不同版本中对应的ctx的类型和package有所不同。
在老版本中是通过引入beego包就可以直接使用beego.Context获取的到。
比如:
在新版本中只能新引入另外一个包来获取:
因此在升级版本的过程中需要留意此处,否则会无法找到对应的定义。
在不同版本中对应的ctx的类型和package有所不同。
在老版本中是通过引入beego包就可以直接使用beego.Context获取的到。
比如:
在新版本中只能新引入另外一个包来获取:
因此在升级版本的过程中需要留意此处,否则会无法找到对应的定义。
脚手架安装 Shift+鼠标右键 选择打开命令窗口 创建项目之前,需先确保本机已经
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M