Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void createContact(@RequestBody Contact c) {
- save(c);
- }
- @ResponseBody
- public Contact getContact(Long id) {
- Contact c = getContact(id);
- return c;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement