我知道两种可能的方法
以HttpEntity
@PostMapping
public ResponseEntity<String> post(HttpEntity<byte[]> requestEntity) {
return ResponseEntity.ok(new String(requestEntity.getBody()));
}
接受整个请求
@PostMapping
public ResponseEntity<String> post(HttpServletRequest request) {
request.getInputStream();
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句