golang异常整理

golang异常整理:

beego相关:

method doesn’t exist in the controller

panic: 'login1' method doesn't exist in the controller AccountController

goroutine 1 [running]:
github.com/astaxie/beego.(*ControllerRegister).addWithMethodParams(0xc04209e580, 0x941427, 0x6, 0x9af620, 0xc04214c000, 0x0, 0x0, 0x0, 0xc04207ff38, 0x1, ...)
	E:/my-project/go_workspace/go_project01/project02/src/github.com/astaxie/beego/router.go:177 +0x897
github.com/astaxie/beego.(*ControllerRegister).Add(0xc04209e580, 0x941427, 0x6, 0x9af620, 0xc04214c000, 0xc04207ff38, 0x1, 0x1)
	E:/my-project/go_workspace/go_project01/project02/src/github.com/astaxie/beego/router.go:157 +0x9c
github.com/astaxie/beego.Router(0x941427, 0x6, 0x9af620, 0xc04214c000, 0xc04207ff38, 0x1, 0x1, 0xc0421460e0)
	E:/my-project/go_workspace/go_project01/project02/src/github.com/astaxie/beego/app.go:259 +0x84
router.init.0()
	E:/go/go_project01/book-world/src/router/router.go:12 +0xdb

我检查了AccountController.go文件中确实是有login1 方法,后来发现是自己粗心吧首字母小写了,go语言估计方法小写也是私有的

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值