Skip to content

Commit

Permalink
fix name miss
Browse files Browse the repository at this point in the history
  • Loading branch information
xianqiangzhao committed Nov 18, 2019
1 parent 1415ead commit 77cd8fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public String readJsonString() {
@ResponseBody
public String readJsonAsObject() {
try {
String json = "{\"user-name\":\"mrbird\"}";
String json = "{\"userName\":\"mrbird\"}";
User user = mapper.readValue(json, User.class);
String name = user.getUserName();
return name;
Expand Down

0 comments on commit 77cd8fc

Please sign in to comment.