Home » Enterprise Java » spring

spring

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 »

Spring Boot Functional Endpoints

Welcome, in this tutorial, we will see how to create functional endpoints in a spring boot reactive application. 1. Introduction Before going further in this tutorial, let us understanding web flux and reactive programming. 1.1 Webflux Webflux is the reactive-web framework in spring and was added as a part of the 5.0 release It offers asynchronous, non-blocking, and event-driven approach ...

Read More »

Spring Initializr Tutorial

Welcome, in this tutorial, we will see how to use Spring Initializr. 1. Introduction Spring Initializr is a web UI provided by the spring framework to easily create the spring project structure The initializer helps to speed up the groundwork required for the project structure such as identifying the spring boot version, maven libraries, plugins, creating a folder structure, programming ...

Read More »

How to use Java SpringLayout

In this article we’re going to see how to use SpringLayout, a class to build GUI in Java. 1. Introduction SpringLayout is a class that arranges children elements associated in the container, using a sort of constraints. To clarify, this class is a very flexible layout manager that can emulate many of the features of other layout managers. However, SpringLayout ...

Read More »

Spring Boot Application Deployment on Heroku

Welcome, in this tutorial, we will see how to deploy a simple spring boot application on the Heroku platform. 1. Introduction Before going further in this tutorial, let us understand Spring Boot. Spring boot is a module that provides rapid application development feature to the spring framework including auto-configuration, standalone-code, and production-ready code It creates applications that are packaged as ...

Read More »