Guest User

Untitled

a guest
Jan 26th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. @PostMapping("/sign-up")
  2. public void signUpOwner(@RequestBody MultiValueMap <String , String > json ) throws ApplicationException, Exception {
  3. String username = json.get("username").toString();
  4. String password =json.get("password").toString();
  5. String email = json.get("email").toString();
  6.  
  7. @PostMapping("/sign-up")
  8.  
  9. public void signUpOwner(@RequestBody ApplicationUser user) throws ApplicationException, Exception {
  10.  
  11. String username = user.getUsername();
  12. String password = user.getPassword();
  13. String email = user.getEmail();
Add Comment
Please, Sign In to add comment