Skip to content

Commit 43b26b0

Browse files
committed
remove gson
1 parent 99040c4 commit 43b26b0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎spring-cloud/spring-cloud-security/personresource/src/main/java/com/baeldung/controller/PersonInfoController.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@
66
import org.springframework.web.bind.annotation.RestController;
77

88
import com.baeldung.model.Person;
9-
import com.google.gson.Gson;
109

1110
@RestController
1211
public class PersonInfoController {
1312

1413
@GetMapping("/personResource")
1514
@PreAuthorize("hasAnyRole('ADMIN', 'USER')")
16-
public @ResponseBody String personInfo() {
15+
public @ResponseBody Person personInfo() {
1716
return new Person("abir", "Dhaka", "Bangladesh", 29, "Male");
1817
}
1918
}

0 commit comments

Comments
 (0)