Home » Enterprise Java » spring

spring

Patch request – Spring boot

Hello. In this tutorial, we will create a simple restful spring boot application and understand the implementation of the patch endpoint request. 1. Introduction PATCH is used when we want to apply the partial update to the resource and does not want to update the entire resource. @PatchMapping annotation is used in spring for mapping the HTTP PATCH requests onto ...

Read More »

Spring qualifier annotation

Hello. In this tutorial, we will create a simple hello world spring boot application and understand the usage of Qualifier annotation. 1. Introduction @Qualifer annotation in spring is used to identify beans of the same type. It is also used to annotate the custom annotations that behave as qualifiers. 2. Spring boot qualifier annotation Let us dive into some practice ...

Read More »

Download and Install Spring Tool Suite(STS)

1. Introduction When developing web services with Spring or Spring-Boot, it will be helpful to have a tool to easily start up a new service just from one click away. This will provide world-class development support for Spring applications. It has a deep knowledge of Spring built-in. Spring Framework provides a comprehensive programming and configuration model for Java-based enterprise applications ...

Read More »

Top 20 Spring-boot interview questions

Bipartite Graph

1. Introduction Due to the content of this article, in the first section, I will start with a brief introduction about Spring and Spring-Boot framework, what are these frameworks and where to use them. Millions of developers are using Spring and Spring-Boot widely. 1.1. Spring Firstly, let’s start with a brief introduction to Spring frameworks which is a programming and ...

Read More »

Getting Started with Kotlin and Spring Boot

Hello. In this tutorial, we will create a simple hello world Spring Boot application in Kotlin. 1. Introduction Kotlin is a statically typed language. It offers multiple features which makes a preferred choice among the open-source developers: It is open-source and is distributed under the Apache License v2.0 Offers its compiler known as the Kompiler It is interoperable with Java ...

Read More »

Spring Boot @Scheduled Annotation Example

Hello. In this tutorial, we will explain the Scheduled annotation in a spring boot application. 1. Introduction @Scheduled annotation in spring boot allows to schedule jobs in the applications. This annotation internally uses the task scheduler interface for scheduling the annotated methods for execution. To set up the spring boot scheduler we need to understand the following – @EnableScheduling – ...

Read More »

DB Integration Tests with Spring Boot and Testcontainers

Hello. In this tutorial, we will explore the Testcontainers to perform integration tests for the jpa repositories in a Spring Boot app. 1. Introduction Testcontainers is a library that provides a clean way for writing the integration and end-to-end tests for the jpa repositories. In this example, we will create a simple rest api application to persist the data in ...

Read More »

Spring JPA @Query Example

Hello. In this tutorial, we will explore the @Query in a Spring Boot JPA application. 1. Introduction The @Query annotation in spring boot is applied at the method level in the JpaRepository interfaces and pertains to a single interface method. The annotation helps the developers to write native sql queries. In this example, we will also be Lombok which is ...

Read More »

Spring Boot MapStruct Example

Hello. In this tutorial, we will explore the mapstruct in a spring boot application. 1. Introduction 1.1 Mapstruct Mapstruct is an annotation-based code generator that simplifies the mapping implementations between the java beans. The code is generated via the plain method invocation and thus it is fast, type-safe, and easy to understand. It is often used in the multi-tiered application ...

Read More »

React Spring Tutorial

1. Introduction In this is tutorial, we will see how to combine a web-based Spring application and a React front-end to work with together. We will build a full stack web application to understand this process. 2. What is React-Spring? Spring is an MVC framework used to develop web applications, and it is one of the most popular development frameworks ...

Read More »