Sample answer: "There are two meanings. Data access: Spring turns technology exceptions like SQLException into its DataAccessException hierarchy, and classes with @Repository get this translation through a post-processor. Web: Boot's /error handling plus @ControllerAdvice turn exceptions into HTTP responses, and Spring supports RFC 9457 ProblemDetail." Editor's note: the web part is not backed by the source below.
Medium
java
spring