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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset