Apache Log4j 2 Tutorials
A simple log4j 2 hello world example.Tested with: Log4j 2.11.2, Maven 3, Java 8. Note: Apache Log4j 2, the fastest Java logging framework, provides significant improvements over its predecessor, Log4j…
Spring MVC + Log4j example
In this tutorial, we will show you how to use the log4j framework to do the logging in a Spring MVC web application. Technologies and tools used :Log4j 1.2.17, Spring…
Log4j hello world example
In this tutorial, we will show you how to use the classic log4j 1.2.x to log a debug or error message in a Java application.
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. Technologies used :Spring Boot…
JdbcTemplate queryForInt() is Deprecated
Upgrading Spring version and noticed that queryForInt() is deprecated, what should be replaced by? Both queryForInt() and queryForLong() are deprecated since version 3.2.2 . To fix it, replace the code…
Spring Boot + Spring Data JPA + Oracle example
In this article, we will show you how to create a Spring Boot + Spring Data JPA + Oracle + HikariCP connection pool example. Tools used in this article :Spring…
Spring Boot JDBC Examples
In this tutorial, we will show you how to use Spring Boot JDBC JdbcTemplate and NamedParameterJdbcTemplate. Technologies used :Spring Boot 2.1.2.RELEASE, Spring JDBC 5.1.4.RELEASE, HikariCP 3.2.0, H2 in-memory database 1.4.197,…
Spring JdbcTemplate Querying Examples
Here are a few examples to show you how to use Spring JdbcTemplate to query or extract data from database. Technologies used :Spring Boot 2.1.2.RELEASE, Spring JDBC 5.1.4.RELEASE, Maven 3,…
Spring + JdbcTemplate + JdbcDaoSupport examples
In Spring JDBC development, you can use JdbcTemplate and JdbcDaoSupport classes to simplify the overall database operation processes. In this tutorial, we will reuse the last Spring + JDBC example,…