-
JdbcTemplate queryForInt() is Deprecated
Upgrading Spring version and noticed that queryForInt() is deprecated, what should be replaced by?
Date: 2019-08-18 View: 1520
-
queryForObject() throws EmptyResultDataAccessException when record not found
Reviewing a legacy project, and found this Spring JDBC code snippets :
Date: 2019-08-17 View: 1520
-
How to autowire DataSource in JdbcDaoSupport
A Simple DAO class extends JdbcDaoSupport, but, unable to inject or @autowired a “dataSource”, the method setDataSource is final, can’t override.
Date: 2019-08-17 View: 1520
-
Spring Boot JDBC + MySQL + HikariCP example
In this article, we will show you how to create a Spring Boot JDBC application + MySQL and HikariCP.
Date: 2019-08-11 View: 1520
-
Spring Boot JDBC + Oracle database + Commons DBCP2 example
In this article, we will show you how to create a Spring Boot JDBC application + Oracle database + Commons DBCP2 connection pool.
Date: 2019-08-11 View: 1520
-
Spring Boot JDBC Stored Procedure Examples
In this tutorial, we will show you how to use Spring Boot JDBC SimpleJdbcCall to call a stored procedure and stored function from a Oracle database.
Date: 2019-08-11 View: 1520
-
java.lang.ClassCastException: class java.lang.Integer cannot be cast to class java.lang.Long
Below example, the jdbcTemplate.queryForList returns an object of Integer and we try to convert it into a Long directly:
Date: 2019-08-11 View: 1520
-
Spring JdbcTemplate Handle Large ResultSet
Spring JdbcTemplate example to get a large ResultSet and process it.
Date: 2019-08-11 View: 1520