首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    There was an unexpected error (type=Bad Request, status=400). Failed to convert value of type ‘java.

    问题解答: 有解决办法是看注解,我的情况是参数上没有带注解,原因是接口接收参数类型是int, int类型默认值为0 不能传空 错误情况: @RequestParam(name = “userId”, required...= false, defaultValue = " ") userId: Int 正确情况: `@RequestParam(name = "userId", required = false, defaultValue...to convert value of type [java.lang.String] to required type [java.lang.Long]; nested exception is java.lang.NumberFormatException...to convert value of type [java.lang.String] to required type [java.lang.Long]; nested exception is java.lang.NumberFormatException...to convert value of type [java.lang.String] to required type [java.lang.Long]; nested exception is java.lang.NumberFormatException

    11410
    领券