Spring's approach to exception handling

Spring takes a different approach to this problem. It makes most of the exceptions unchecked. The code becomes simple:

    jdbcTemplate.update(INSERT_TODO_QUERY,     bean.getDescription(),bean.isDone());

The update method in JDBCTemplate does not declare throwing any exception.

Get Mastering Spring 5.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.