December 7, 2023

VS Code for Spring Boot Java Development: Step by Step Guide

This article is a step by step guide to setup and develop Spring Boot applications using Visual Studio Code. I will be building a simple Spring Boot service from scratch using VS Code. I’ll show you what extensions to install and how to use the VS Code features to develop and iterate on your Spring Boot application.

VS Code for Spring Boot Java Development: Step by Step Guide Read More

Spring Boot REST API Example – Step-by-Step Guide

Building robust and scalable REST APIs is a common requirement for modern web development. This application will explore how to create REST APIs for CRUD operations using Spring Boot framework. Apart from building simple REST APIs, we will learn about request validation, error handling, testing, API documentation, and deployment.

Spring Boot REST API Example – Step-by-Step Guide Read More

Instructions for creating Spring Boot with many modules using Gradle

Gradle is an open-source that automates the process of packaging a project with the main advantage of high customization and good performance. Gradle was born later and improved weak parts Maven such as cumbersome declaration syntax, difficult to manage, unoptimized build and testing speed. To take advantage of these, today we will create a project Spring boot with multiple module values Gradle ​​instead of the Maven traditional ones.

Instructions for creating Spring Boot with many modules using Gradle Read More

Conditional Beans with Spring Boot

Spring has introduced the @Conditional annotation that allows us to define custom conditions to apply to parts of our application context. Spring Boot builds on top of that and provides some pre-defined conditions so we don’t have to implement them ourselves. In this tutorial, we’ll have a look some use cases that explain why we would need conditionally loaded beans at all. Then, we’ll see how to apply conditions and which conditions Spring Boot offers. To round things up, we’ll also implement a custom condition.

Conditional Beans with Spring Boot Read More

Running Scheduled Jobs in Spring Boot

Scheduling is the process of executing a piece of logic at a specific time in the future. Scheduled jobs are a piece of business logic that should run on a timer. Spring allows us to run scheduled jobs in the Spring container by using some simple annotations. In this article, we will illustrate how to configure and run scheduled jobs in Spring Boot applications.

Running Scheduled Jobs in Spring Boot Read More