You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "Bo Li (JIRA)" <ji...@apache.org> on 2017/12/20 04:06:00 UTC
[jira] [Created] (SC-75) 通过@RequestBody byte[] buffer接收字节时,为什么必须是json格式的才行
Bo Li created SC-75:
-----------------------
Summary: 通过@RequestBody byte[] buffer接收字节时,为什么必须是json格式的才行
Key: SC-75
URL: https://issues.apache.org/jira/browse/SC-75
Project: Apache ServiceComb
Issue Type: Bug
Reporter: Bo Li
通过@requestbody byte[] buffer接收字节时,若不是json格式,则直接报参数错误,为什么?
@RequestMapping(value = "/update", method = RequestMethod.PUT)
public ResponseEntity<String> update(@PathVariable("accountId") Long accountId,
@RequestHeader("Date") String date,
@RequestBody byte[] buffer, HttpServletRequest request)
{
byte[] data = buffer; //此处buffer必须是json格式
}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)