- Extend
ResponseEntityExceptionHandlerfor global exception handling. - Use
ProblemDetailin global exceptions to properly represent API error responses, instead of rolling your own error response shape. - Use the default JWT support in Spring Security rather than a custom implementation, where possible.
- Add the Maven Spotless plugin for code formatting.
Note
Spring: Best Practices to Explore
A short running list of Spring best practices worth adopting.
views 0