Java
-
The Collections interface
The Collections interface is the root interface extended by most collection types and defines common methods for all collection types. Interfaces and concrete implementations of a list, set and queue will inherit these…
-
Spring Security 6 with basic authentication
In this tutorial, we are going to set up Spring Security in a Spring Boot servlet application and configure an in-memory user to test authentication. Pre-requisites Step 1 : Add the Spring Security…
-
Spring Data
When an application requires interaction with a database, that often means implementing a considerable amount of boilerplate code which, over time, becomes difficult to maintain. Spring data eliminates boilerplate code and abstracts database…
-
The Springboot web starter
Spring web starters are a common place to start building web applications or services and in the Spring world, web applications and services are considered as the same. A single application can contain…
-
Spring Config Server & Client
Configuration are properties that are required by the application but that are specific to an environment. The 12 factor methodology for building cloud native applications notes that externalizing configuration is important where applications…
-
Java Data Structures
What is a data structure? In any application that you are building, there would most likely be data involved. You may require to group and sort that data in a particular way or…
-
Spring Profiles
Profiles in the Spring framework give you the ability to change application configurations based on the environment that the application is deployed to and is valuable in multi-environment deployments. Usually an application has…
-
Spring auto-configuration
What is auto-configuration? Auto-configuration is a key feature of Springboot that contributes to rapid development of applications by eliminating the need to pre-configure resources or properties required by the application in runtime. @EnableAutoConfiguration…
-
RDMS interaction with Hibernate
Hibernate Object Relational Mapping (ORM) is an open source framework that facilitates Java program access and data persistence to a relational database management system. Hibernate is an implementation of JPA and can either…
-
Conditions in Java : If…Else
Conditional logic is common practice when different actions or tasks are required to be performed on input or data and is based on specific conditions being met. If…else Scenario: Evaluate the user’s input…