remove gson

This commit is contained in:
Loredana Crusoveanu
2018-01-20 15:27:28 +02:00
parent 1cb252d052
commit 99040c49f1
2 changed files with 1 additions and 7 deletions
@@ -14,8 +14,6 @@ public class PersonInfoController {
@GetMapping("/personResource")
@PreAuthorize("hasAnyRole('ADMIN', 'USER')")
public @ResponseBody String personInfo() {
Gson gson = new Gson();
String person = gson.toJson(new Person("abir", "Dhaka", "Bangladesh", 29, "Male"));
return person;
return new Person("abir", "Dhaka", "Bangladesh", 29, "Male");
}
}