问答详情
源自:5-4 秒杀交互

400错误 ,url里seckillId显示为undefined

org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver.handleTypeMismatch Failed to bind request element: org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Long'; nested exception is java.lang.NumberFormatException: For input string: "undefined"

提问者:宝慕林4578610 2016-11-30 14:59

个回答

  • 宝慕林4578610
    2016-12-01 08:52:32

    额,其实是在detail.jsp里传值的对象单词拼错了。。。

  • jason_0133
    2016-11-30 20:33:24

    类型转换错误啊,seckillId需要long类型,你给了个String