Search results for: Maven

In this tutorial, I will walk you through how to build multi-container applications using Docker Compose. This is a beginner-friendly guide that explains everything you need to know to get started. You will learn how to create a web application with Spring Boot that uses MySQL as a database server. We will also discuss how…

Read More Building Multi-Container Application with Docker Compose: A Beginners’ Guide

In this tutorial you will learn how to enable and how to view Spring Cloud API Gateway Routes using Spring Boot Actuator. Developers use Actuator to enable API Gateway routes in order to keep track of the routes being used in their application. By exposing these routes through Actuator endpoints, developers can get valuable information…

Read More Viewing Spring Cloud API Gateway Routes with Spring Boot Actuator

In a microservices architecture, it is common to have multiple services communicating with each other over the network. This distributed nature of the architecture can make it challenging to diagnose and debug issues when they arise. To address this problem, developers often use monitoring(Micrometer) and tracing tools(Zipkin) to track the flow of requests between microservices.…

Read More Micrometer and Zipkin: How to Trace HTTP Requests in Spring Boot 3

In this tutorial, you will learn how to enable OpenAPI(Swagger) in your Spring Boot version 3 application. What is OpenAPI? OpenAPI (formerly known as Swagger) is a specification for building and documenting RESTful APIs. It allows developers to describe their API operations, inputs, outputs, and other aspects in a structured and machine-readable format. This documentation…

Read More Enable OpenAPI 3(Swagger) in Spring Boot 3

This short REST Assured tutorial will teach you how to validate the HTTP Response Status Code while testing a RESTful Web Service endpoint. Each HTTP Response includes a status code, and by examining the status code value, we can determine if the HTTP Response was successful or not. Let’s explore how we can use REST…

Read More Validate HTTP Status Code: RestAssured

This tutorial will guide you on how to incorporate JUnit support into your Spring Boot application based on Maven. Spring Boot Starter Test Dependency To add JUnit and Mockito support to your Maven-based Spring Boot application, include the following dependencies in the <dependencies> section of your pom.xml file: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> By adding…

Read More JUnit Support in Spring Boot

In the software development process, testing is essential. There are two types of testing i.e. unit testing and integration testing. While unit testing focuses on testing the smallest component of an application, integration testing focuses on testing the end-to-end behavior of the application also known as endpoint testing. Integration testing verifies the @Controller and @RestController…

Read More Testing Spring Boot Applications with MockMvc

This tutorial will teach you how to use project Lombok in the Spring Boot application. Overview No doubt Java is a wonderful language, but one of the drawbacks of Java is its verbose nature. This makes it fairly complicated for everyday tasks such as composing a simple POJO object. For example, constructing of methods like Getters(), Setters(),…

Read More How to use Project Lombok in Spring Boot