CodesJava

Easy learning with example program codes

spring rowmapper example

RowMapper interface:

RowMapper is a callback interface used by JdbcTemplate’s query methods to process the ResultSet. It actually maps each row of ResultSet to a user defined … Read More

spring resultsetextractor tutorial

ResultSetExtractor interface:
ResultSetExtractor is a callback interface used by JdbcTemplate’s query methods to process the ResultSet. It extract or fetch results from a ResultSet. However RowMapper is … Read More

spring jdbc prepared statement

PreparedStatementCallback interface:

The PreparedStatementCallback is a generic callback interface for code that operates on a PreparedStatement. Allows to execute any number of operations on a single PreparedStatement … Read More

spring jdbc tutorial

Problems with JDBC API:

We have to write unnecessary code for creating database connections, SQL statement executions, exception handling, transaction handling and closing database connections etc.

Spring Read More

spring bean autowire by constructor

Spring bean autowire by constructor is analogous to spring bean autowire by type but applies to constructor arguments.

Let’s discuss spring bean autowire by constructor with below … Read More

spring bean autowire by type

Allows a property to be autowired if there is exactly one bean of the property type in the application context. If there is more than one, a … Read More

spring bean autowire by name

Autowiring by property name. This will inspect the application context and look for a bean named exactly the same as the property which needs to be autowired.… Read More

spring autowire tutorial

Autowiring is the process of placing an instance of one bean into the specified field in an instance of another bean.

 

How Spring Autowiring Works?

All … Read More

how to log sql statements in spring boot?

We can log sql statements in spring boot by using following properties in application.properties file.

//It will shows sql statement in the logs
logging.level.org.hibernate.SQL=debug
 
//It will shows 
Read More
Sign Up/ Sign In
Ask a Question


Copyright © 2018 CodesJava DMCA.com Protection Status SiteMap Reference: Java Wiki