Spring Boot 3 Security with JWT - darkchoco/spring-project GitHub Wiki

Long or long for JPA?

The primitive type long is initialized to 0 by default. If there is no id, it's difficult to say whether it is 0 because this id does not exist or it is 0 because it is initialized to 0.
However, the Long type becomes null when there is no id and it can guarantee that there is no id by itself.



Refer to the following when running in Postman.
Content-Type must be application/json.

  1. http://localhost:8080/api/v1/auth/register - POST with Body 'raw' as below:
 {
    "firstname": "John",
    "lastname": "Doe",
    "email": "[email protected]",
    "password": "1234"
}
  1. http://localhost:8080/api/v1/auth/auth - POST with Body 'raw' as below:
{
    "email": "[email protected]",
    "password": "1234"
}
  1. http://localhost:8080/api/v1/demo
⚠️ **GitHub.com Fallback** ⚠️