Create A REST API With JSON Server

In this tutorial, we will see about JSON server. Let’s say you are front-end developer and need to integrate backend calls with REST APIs but you came to know from backend team that REST APIs …

Java Set to Array

In this post, we will learn java set to array conversion. There are many ways to convert set to an array. Table of Contents1. Using Java 8’s Stream2. Using toArray()3. Using System.arraycopy()4. Using simple iteration …

Java Collection to List

In this post, we will see how to convert Java Collection to List. There are many ways to do it, we will see two ways here. Using ArrayList constructor Above ArrayList‘s constructor creates a …

Java Collections shuffle

Shuffle method is to permute passed list with default or specified¬†randomness. Syntax Example : Let’s see both the function with the help of example. When you run above program, you will get below …

Spring boot profiles example

In this tutorial, we will see about Spring boot profiles. Table of ContentsNeed for profilesProfiles for environment specific propertiesSetting active profileSpring boot @Profile annotationProject StructureSource code Need for profiles Application development is complex process. You …

Spring Profile annotation example

In this tutorial, we will see about Spring @Profile annotation. This tutorial is an extension to Spring boot profile example. Profile annotation represents named logical grouping¬† may be activated via By using ConfigurableEnvironment.setActiveProfiles(java.lang.String…) By setting …

Join Our News Letter - Stay Updated

Subscribe to Awesome Java Content.
You can like our facebook page Java2blog