Validation with Spring Boot – the Complete Guide
Bean Validation is the de-facto standard for implementing validation logic in the Java ecosystem. It’s well integrated with Spring and Spring Boot. However, there are some pitfalls. This tutorial goes…
How to Record Request and Response Bodies in Sping Boot Applications
In some scenarios, we need to log every client request and response log (including detailed body information). As you know, streams can only be read once. If we read the…
How to create a Spring Boot console application
To create a Spring Boot console application, the main class must implement the CommandLineRunner interface and override the run() method. Dependencies We only need the spring-boot-starter dependency for the console…
How To Change Your PHP Settings on Ubuntu
PHP is a server side scripting language used by many popular CMS and blog platforms like WordPress and Drupal. It is also part of the popular LAMP and LEMP stacks.…
How to Build a CRUD REST API Using Spring Boot
We are going to build a REST API to manage bookmarks using Spring Boot and PostgreSQL database by implementing CRUD (Create, Read, Update, Delete) API endpoints.
How to Use Flyway for Database Migrations in Spring Boot Applications
JPA/Hibernate provide an easy way to generate a database schema based on JPA entities, which can be convenient during development. For example, while using Spring Data JPA, you can configure…
Spring Boot with PostgreSQL: A Step-by-Step Guide
Here, we will explore how to build a database-driven backend application using PostgreSQL and Spring Boot. The first step is creating a Spring Boot sample app, followed by creating and…
Getting started with Spring Data Elasticsearch
In the Spring ecosystem, Spring Data JPA is the de facto ORM library to interact with RDBMS databases. The good news is Spring Data is not limited to JPA only.…
Spring Boot + PostgreSQL + JPA/Hibernate CRUD Restful API Tutorial
In this tutorial, we will learn how to build CRUD REST APIs using Spring Boot, JPA/Hibernate, and the PostgreSQL database. We will use the latest version of Spring Boot 3…
Docker – Running PostgreSQL as a container
This article shows how to use Docker to run PostgreSQL as a container. Technologies used: Docker 24.0.5 and Official Docker postgres image (latest tag)