In this tutorial, you will learn how to install MySQL on Amazon EC2 Linux machine. If you’re new to this or have encountered issues with previous installations, you’re in the right place. If you want to learn how to run MySQL in a Docker container instead, then read this tutorial: How to start MySQL in…
Read More How to Install MySQL on Amazon EC2 Linux
If you’re an absolute beginner looking to learn about integration testing for Spring Boot applications with a MySQL database server, then you’re in the right place. As you proceed through this tutorial, remember that everyone was once a beginner, and the only silly question is the one you don’t ask. This tutorial aims to introduce…
Read More Integration Testing with Spring Boot, MySQL and Testcontainers
In this tutorial, you will learn how to deploy a Spring Boot application and a MySQL server in separate Docker containers. By the end of this tutorial, you will know how to run your Spring Boot application in one Docker container and your MySQL server in another Docker container and how to make them communicate…
Read More Deploying a Spring Boot App and MySQL in Docker Containers
In this tutorial, you will learn how to start MySQL in a Docker Container. But before we begin, please ensure that Docker is installed on your system. If you need more information about Docker, please visit the Docker Tutorials page. Step 1: Pull MySQL Docker Image The first step is to pull the MySQL Docker image…
Read More How to Start MySQL in Docker Container
This tutorial will demonstrate how to implement the One-to-Many Mapping in your Spring Boot application that uses Hibernate/Spring Data JPA. As a database, I will use a MySQL server. If you are learning about Hibernate, you might also be interested in the following tutorials: One-to-One Mapping Hibernate/JPA Using Spring Boot and MySQL Many-to-Many Relationship in…
Read More One to Many Mapping Hibernate/JPA Using Spring Boot and MySQL
This tutorial will demonstrate how One-to-One Mapping in Hibernate/Spring Boot Data JPA works. As a database, I will use a MySQL database server. We will create two JPA entities: the Book and the Story. The Book and the Story entities have one to one relationship, which means that the Book entity has a Story entity,…
Read More One to One Mapping Hibernate/JPA Using Spring Boot and MySQL
In this tutorial, you will learn how to configure Keycloak to use the MySQL database server instead of the H2 database. Create MySQL Database for Keycloak To make the Keycloak store data in MySQL database, we will need to create a new MySQL database. Sign-in to MySQL server with a root user credentials and create…
Read More Keycloak: Configure MySQL Database
In this short blog post, I will share with you how to add MySQL support to your Spring Boot Web app, and with Spring Boot, it is very easy. If you are interested to learn how to add the JPA and MySQL support to your Spring Boot Web app and learn how to implement a…
Read More Add MySQL Support to Spring Boot Web App
Hibernate is a great framework to use to persist data into a database when building RESTful Web Services for your mobile application with Jersey and JAX-RS. In most of the projects I have participated when designing RESTful Web Services for Mobile App we used MySQL database server and Hibernate framework to store user data which…
Read More Persist Java Object in MySQL Database With Hibernate
In this tutorial, you will learn what the @Respository annotation is and how to use it in your Spring Boot applications. @Repository is a Spring annotation that indicates that the decorated class is a repository. A repository is a mechanism for encapsulating storage, retrieval, and search behaviour which emulates a collection of objects. How to…
Read More @Repository Annotation in Spring
Testing is an essential skill for any Java developer. It helps you ensure the quality and reliability of your code, as well as find and fix bugs faster. On this page, you will find a collection of tutorials that will teach you how to test Java code using JUnit 5 and Mockito. JUnit 5 is…
Read More Testing Java Code
Welcome to this comprehensive beginner’s guide on Docker Swarm. I will explain everything in detail, and by the end of this tutorial, you will learn how to use Docker Swarm to orchestrate and scale containers. If you are new to Docker, don’t worry! I will guide you through each step, making sure everything is clear…
Read More Introduction to Docker Swarm: Orchestrating and Scaling Containers
Hello everyone, welcome to this beginner’s guide on “Scaling with Docker Compose”. In this tutorial, I will explain what Docker Compose is, why it’s useful, and how you can use it to scale your applications. By the end of this tutorial, you will have a firm understanding of Docker Compose and how you can leverage…
Read More Scaling with Docker Compose: A Beginner’s Guide
In this tutorial, you will learn the ins and outs of using volumes and persistent data with Docker Compose. This topic is crucial for anyone who wishes to maintain data across container lifecycle. You will learn about Docker volumes, how to use them in Docker Compose, and to solidify your understanding, I’ll walk you through an…
Read More Volumes and Persistent Data with Docker Compose
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