师兄,我在项目里集成了swagger-ui组件,但是有个槛死活过不去,就是创建订单时表单里的item字段是格式,我死活传不进去。
2018-04-21 14:31:01.499 WARN 3069 --- [nio-8080-exec-2] .w.s.m.s.DefaultHandlerExceptionResolver : Failed to read HTTP message: org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Unexpected character ('1' (code 49)): was expecting comma to separate Object entries; nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character ('1' (code 49)): was expecting comma to separate Object entries
at [Source: java.io.PushbackInputStream@6bd58c65; line: 3, column: 27]
2018-04-21 14:31:01.499 WARN 3069 --- [nio-8080-exec-2] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved exception caused by Handler execution: org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Unexpected character ('1' (code 49)): was expecting comma to separate Object entries; nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character ('1' (code 49)): was expecting comma to separate Object entries
at [Source: java.io.PushbackInputStream@6bd58c65; line: 3, column: 27]
请问师兄,swagger-ui是不是不支持x-www-form-urlencoded还是我传的方式不对?师兄当年是如何处理的?