Spring JPA Beginner Tutorial

In this tutorial I will explain how to build a basic Spring JPA project using Spring Initilizr. Core Concept The goal of spring data repository is to significantly reduce the amount of boiler plate code required to implement the persistence/dao layer in any Spring application. The primary interface in Spring data repository abstraction is Repository.It […]

Spring Basics in Java

Java offers a final class java.lang.String which represents a sequence of characters as a 16 bit unicode. The string class offer various methods that can perform various operation on strings. Creating strings in Java There are three ways to create strings in Java Using the new operator: String str = new String(“Hello World”); When we […]

Dependency Injection

Dependency Injection is a design pattern used to implement IoC. Dependency Injection separates the creation of a client’s dependencies from the client behaviour , which allows program design to be loosely coupled and to follow the dependency inversion and single responsibility principles. Dependency injection involves four rules:- The service objects(s) to be used. The client […]

Log4j2 Maven Configuration

This post is regarding logging (log4j2) configuration in a maven project. Here’s the steps to add lo4j2 in your maven project :- Maven Project Structure You need to have the above project structure .The log4j2.xml that is the logging configuration file ,needs to be placed under src/main/resources folder. Dependencies The following dependencies to be added […]

ORA-01882: timezone region not found error in Payara Server

This tutorial will explain how to resolve the “time zone region not found error ” when the user tries to set a JDBC Connection pool in payara server. We usually get this error when we try to create a JDBC Connection pool in payara server.You will get the following error when you try to ping […]