weinihaom commented on issue #3354:
URL:
https://github.com/apache/servicecomb-java-chassis/issues/3354#issuecomment-1275789025
`@RestController
@RequestMapping(value = {"/v3"}, produces =
{"application/json;charset=UTF-8"})
@Validated
public class TestRequestBodyDemoController {
private static final CMLogger logger =
CMLoggerFactory.getLogger(TestRequestBodyDemoController.class);
@RequestMapping(value = {"/test_requestbody"}, produces =
{"application/json"}, method = {RequestMethod.POST})
public ResponseEntity<User> showMonthUsages(@Valid @RequestBody User
requestbody) {
logger.info("requestbody is {}", requestbody);
return new ResponseEntity<>(requestbody, HttpStatus.OK);
}
}`
这个是最简单的案例,请求体为空,不拦截
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]