- controller中关于request中jsonBody的接收
1` (@RequestBody String bodyParams) :直接使用string接收
最好设置@PostMapping(value = "/importSimpleAcount",produces = "application/json;charset=UTF-8") 的produces 属性
最近需要调第三方的接口,这种方便一些,不需要再转一次了
2` (@RequestBody HashMap<String,Object> bodyParams):使用map接收
3` (@RequestBody JsonObject bodyParams):使用JsonObject接收,原理同map