Skip to content

Instantly share code, notes, and snippets.

View johnjqc's full-sized avatar

John Quiroga johnjqc

View GitHub Profile
@Bean
public PasswordEncoder buildPassEncoder() {
return new BCryptPasswordEncoder(4, new SecureRandom());
}
@johnjqc
johnjqc / error_response.json
Last active September 16, 2020 01:20
This is the default error format for spring-boot framework webservice
{
"timestamp": "2020-09-16T00:22:59.660+00:00",
"status": 404,
"error": "Not Found",
"message": "No message available",
"path": "/my-resource-name"
}