错误场景:lz在使用restTemplete发起post请求时,由于对HttpEntity参数类型不太了解,报此异常。
使用post请求,当contentType为application/json时:
当contentType是application/x-www-form-urlencoded时:
错误场景:lz在使用restTemplete发起post请求时,由于对HttpEntity参数类型不太了解,报此异常。
使用post请求,当contentType为application/json时:
当contentType是application/x-www-form-urlencoded时: