chujianyun / Spring-MultiRequestBody

Spring多@RequestBody支持
101 stars 46 forks source link

Character(char) type parameter received error #3

Open 1996yarbrough opened 5 years ago

1996yarbrough commented 5 years ago

class : io.github.chujianyun.controller.DemoController method: multiRequestBodyDemo1 my parameter : {"id":22} multiRequestBodyDemo1 received data : 2

caused: io.github.chujianyun.bean.MultiRequestBodyArgumentResolver.parsePrimitive final String charTypeName = "char"; if (charTypeName.equals(parameterTypeName)) { return value.toString().charAt(0); }

I think this situation should throw an exception.