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

View File

@ -43,10 +43,6 @@
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-jwt</artifactId>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
</dependency>
</dependencies>
<dependencyManagement>

View File

@ -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");
}
}