remove gson

This commit is contained in:
Loredana Crusoveanu 2018-01-20 15:30:28 +02:00
parent 99040c49f1
commit 43b26b0ef9
1 changed files with 1 additions and 2 deletions

View File

@ -6,14 +6,13 @@ import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import com.baeldung.model.Person;
import com.google.gson.Gson;
@RestController
public class PersonInfoController {
@GetMapping("/personResource")
@PreAuthorize("hasAnyRole('ADMIN', 'USER')")
public @ResponseBody String personInfo() {
public @ResponseBody Person personInfo() {
return new Person("abir", "Dhaka", "Bangladesh", 29, "Male");
}
}