In which case should you use primitive types(int) or reference types (Integer)?
int
Integer
This question sparked my curiosity.
When we deal with Spring getRequest mapping methods, using boolean value does not work.
For instance :
@GetMapping("/goal") public boolean isValidGoal() { boolean isValid = true; return isValid; }
Always opt for Boolean in those cases.