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

来源:3-12 用户模型管理--用户登陆功能实现

sgdy23

2019-01-24 09:40

断点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

写回答 关注

1回答

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

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

    selectByTelphone

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

SpringBoot构建电商基础秒杀项目

应用SpringBoot快速搭建拥有用户、商品、交易及秒杀活动的电商秒杀应用。

49541 学习 · 978 问题

查看课程

相似问题