问答详情
源自:3-12 用户模型管理--用户登陆功能实现

用postman调用login接口的时候,断点进入了handleException方法,未进入login方法

断点handleException是org.springframework.web.bind.MissingServletRequestParameterException: Required String parameter 'otpcode' is not present

https://img3.mukewang.com/5c49172f0001e6c721000984.jpg


https://img2.mukewang.com/5c49174a0001b8e215460944.jpg


代码已更新到github: https://github.com/shawbs/miaosha-demo

提问者:sgdy23 2019-01-24 09:40

个回答

  • fantasy_jun
    2019-07-07 17:16:02

    我也遇到了类似的问题,就是login的service都没有调用直接进报错。我的问题发现是因为

    selectByTelphone

    在interface和implement两个文件中写的方法名不一致导致报错。你可以检查一下关键方法的方法名是否一致