Skip to content
thesarfo

Note

Spring: Best Practices to Explore

A short running list of Spring best practices worth adopting.

views 0
  1. Extend ResponseEntityExceptionHandler for global exception handling.
  2. Use ProblemDetail in global exceptions to properly represent API error responses, instead of rolling your own error response shape.
  3. Use the default JWT support in Spring Security rather than a custom implementation, where possible.
  4. Add the Maven Spotless plugin for code formatting.