Created
December 12, 2019 11:26
-
-
Save upangka/1f2fee2d507c220a08b179b822e04710 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"error": 0, | |
"content": { | |
"param": { | |
"cardNo": "4448019808213601", | |
"name": "Q10Viking", | |
"age": 12 | |
}, | |
"name": "Q10Viking" | |
}, | |
"message": "成功", | |
"language": "zh_CN" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@PostMapping(value="/api/wxapp/activation/card/test") | |
public JsonResult activationCard(@RequestBody JsonNode param) { | |
System.out.println(param); | |
String name = param.get("name").asText(); | |
System.out.println(name); | |
// ObjectMapper objectMapper = new ObjectMapper(); | |
// ObjectNode objectNode = objectMapper.createObjectNode(); | |
ObjectNode objectNode = JsonNodeFactory.instance.objectNode(); | |
// set jsonnode | |
objectNode.set("param", param); | |
// set 字符串 | |
objectNode.put("name", name); | |
return success(objectNode); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment