Spring Security User Service

Spring Security will configure a single default user with a username as user, and it generates a random password and prints it in the application startup log. We can use...

Spring Security Introduction

Security is an essential part of any application because it will protect the application from intruders. Spring Security is one of the projects in the Spring suite. This project will...

Spring Cloud Gateway - Part 2

In Part 1 of this tutorial series, we learned to configure routes using Predicates. Predicates help us to define the conditions on the request to match the Route. In this...

Spring Cloud Gateway - Part 1

API Gateway is the entry point to the application, through which the client (Web/Mobile/Desktop) can make REST API calls. API Gateway will allow us to secure the endpoints, throttle, and...

Understanding CountDownLatch With Simple Example

We use Threads to run multiple tasks in parallel. We usually create a thread, start them, and at a later point in the application, we wait for the thread to...

Using new Switch expressions

One of the new features released as part of Java 14 is the switch expressions. This feature was available in earlier versions (Java 12 and 13), too, but as a...

How to use records in Java

Record is a new feature added in Java 14. In this article, we will learn about Records, there usage and limitations along with some examples. We will also see how...

Create Singleton Instance In Kotlin

There are many use cases where we need Singleton instances in applications. For example; to maintain a single instance of resources like a database or object store or file system....

Cloud Configuration With Micronaut and Consul

Micronaut is one of the new framework available to Java world which helps in developing web, cloud, and serverless applications. Recently we see many new frameworks evolving like Quarkus from...