Home » Enterprise Java » spring

spring

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 »

Spring IO Platform

In this article, we’re going to discuss Spring IO Platform, a version management tool used in the Spring Framework environment. Also, we’ll see how to use it together with Spring Boot. 1. Introduction Spring IO Platform brings together the core Spring APIs into a cohesive platform for modern applications. Also, It provides curated versions of numerous projects in the Spring ...

Read More »

How to use Spring Framework in Eclipse

In this article, we will discuss how to use the spring framework in the Eclipse IDE. We will go step by step to set up all the prerequisites to run a spring application in eclipse with an example. 1. Setup Java Development Kit The first and the important step is to set up the java development kit locally in your ...

Read More »

Spring Boot Starter Tutorial

This is a tutorial about Spring Boot Starter. 1. Introduction Spring Boot is a Spring Framework module that provides Rapid Application Development or RAD for spring projects. In this article, we look at one of Spring Boot’s features called Spring Boot Starters. 2. What is a Spring Boot Starter? Without Spring Boot starters, we need to add all the necessary ...

Read More »