Created
April 1, 2019 06:12
-
-
Save zzuummaa/7f9562651905430b71eb65c8b1a39f43 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@PostMapping(SIGN_UP_URL) | |
public void signUp(@Valid @RequestBody ApplicationUser user) { | |
user.setPassword(bCryptPasswordEncoder.encode(user.getPassword())); | |
try { | |
applicationUserRepository.save(user); | |
} catch (Throwable e) { | |
throw RepositoryExceptionExtractor.extract(e, logger, Thread.currentThread().getStackTrace()[1].getMethodName()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment