Home » Enterprise Java » spring » Boot

Boot

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 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 »

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 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 »

Spring Boot with Caffeine Cache

Welcome, in this tutorial, we will see how to integrate Caffeine cache in a Spring boot application. Caffeine is a high-performance java8 based caching library and is similar to the in-memory cache provided by google guava api. 1. Introduction Before going further in this tutorial, we will look at the common terminology such as introduction to Spring Boot and Lombok. ...

Read More »

How to encrypt passwords in a Spring Boot project using Jasypt

Welcome, in this tutorial, we will learn how to encrypt passwords in a Spring Boot project using Jasypt. We will see how to secure the file-sensitive information in a spring boot application using the Jasypt dependency. 1. Introduction Before going further in this tutorial, we will look at the common terminology such as introduction to Spring Boot, Jaspypt, and Lombok. ...

Read More »

Spring Boot RESTful Web Services Versioning Example

Welcome, in this tutorial, we will show a RESTful API by using the Accept Header versioning technique in a Spring Boot app. 1. Introduction Before going further in this tutorial, we will look at the common terminology such as introduction to Spring Boot and Lombok. 1.1 Spring Boot Spring boot is a module that provides rapid application development feature to ...

Read More »