Spring

SpringBoot JPA, H2 & Liquibase

JPA As a specification, the Jakarta Persistence API (formerly Java Persistence API) is concerned with persistence, which loosely means any mechanism by which Java objects outlive the application process that created them. The JPA specification lets you define which objects should be persisted, and how they are persisted in your Java applications. while JPA was originally intended for use with relational databases, …

SpringBoot JPA, H2 & Liquibase Read More »

Different Caching Strategies in Java Application

Request Scoped Caching Request Scoped Caching allows us to cache the object for the lifetime of the request, to implement this we will be using Caffeine Cache, as it is one of the high-performance Cache in Java. Implementation Steps Step1: Add Dependencies Step2: Configuration Step3: Cache Objects The Object is returned from Request Cache based …

Different Caching Strategies in Java Application Read More »

Springing Java Apps: Servlet and Reactive Ways

Spring Origins Spring is open source and has large community support due to its widespread acceptance. The first version was written by Rod Johnson and was released with an Apache license in 2003. Spring Source was the company founded by founders, which later got purchased by VMWare in 2008. As per Wikipedia, In April 2013, …

Springing Java Apps: Servlet and Reactive Ways Read More »

Security in Spring Boot: UserPasswd, JWT Token, OAuth2

Spring Security Spring Security is a powerful authentication and authorization framework. Provides protection against attacks like session fixation, clickjacking, cross-site request forgery, etc. Spring Security is a highly flexible and customizable framework and is the de-facto standard in the Spring framework. This blog will cover three options UserName & Password JWT Token OAuth2 Many more …

Security in Spring Boot: UserPasswd, JWT Token, OAuth2 Read More »

Logging and Monitoring in Spring-Boot

Introduction What is the need for Logging and Monitoring? The response varies depending on who we ask this question, A newbie developer might brush it away as a waste of time, while a middle-level Engineer would agree that it is needed only when we need to debug an issue, whereas seasoned Engineer values Logging and …

Logging and Monitoring in Spring-Boot Read More »

Various Scheduling technique for Java Spring Application

Introduction Spring provides support for both task scheduling and asynchronous method execution we will check different ways this can be achieved. Spring schedular with any Instant time Spring Schedular with CronTrigger Spring schedular using Annotation When your app runs on multiple instances then Spring could not handle the synchronization of different instances, this is where …

Various Scheduling technique for Java Spring Application Read More »

Spring Retry

Retry is an important tool in our arsenal to make robust and efficient APIs, it helps us to automatically reinvoke a failed operation. This is because sometimes due to network glitches or DB errors, the call fails for the first time however succeeds next time. We can do retry using annotations, and RetryTemplate. Spring Retry …

Spring Retry Read More »

error: Content is protected !!
Scroll to Top