【springMVC 将对象通过responseBody转换成json】
@ResponseBodyYou can use the@ResponseBodyannotation on a method to have the return serialized to the response body through anHttpMessageConverter. The following listing shows an example:Java@GetMapping("/accounts/{id}")@ResponseBodypublic Accou...
原创
2020-09-07 14:32:01 ·
272 阅读 ·
0 评论