Java Docker Best Practices

We all want to avoid the it was working perfectly well on my system scenario. Hence, there is a need to dockerise our Java web application. This tutorial gives us the best practices to consider when containerising our Java applications. Below are the best practices to keep in mind when containerising or dockerising Java web applications: Specify Explicit and Predictable Docker Base Image Tags Install Only What You Need in Production in the Java Container Image Find and Fix Security Vulnerabilities in Your Java Docker Image Use Multi-Stage Builds Don’t Run Java Apps as Root Properly Handle Events to Safely Terminate a Java Application Gracefully Tear Down Java Applications Use ....

August 20, 2023 · 7 min · Emmy Steven

How To Make Maven Faster

What is Maven Maven, often dubbed as the “swiss army knife” of Java development, is a robust and highly popular build automation and project management tool. It plays a pivotal role in simplifying the often intricate and multifaceted process of building, managing, and delivering Java-based software projects. Maven is renowned for its ability to bring order and efficiency to the entire software development lifecycle, from project initialization to build automation, testing, reporting, and the seamless management of project dependencies....

August 10, 2023 · 9 min · Emmy Steven

Spring Boot in 20 Minutes

Chapter 1: Spring Boot Overview This guide will teach you how to use the most popular Java framework, Spring Boot. This guide will show you how to build a web app using Spring Boot from start to finish. You will also learn how to install Java Software Development Kit (SDK) and set up Spring Boot on your computer. Also, we’ll show you how to connect a MariaDB database with Spring Boot and deploy a full-blown web application to the server in this Spring Boot guide....

July 30, 2023 · 21 min · Emmy Steven

How To Dockerize Spring Boot

Introduction In today’s fast-paced development landscape, deploying applications efficiently and ensuring scalability are paramount. Dockerizing Spring Boot   external link applications has emerged as a popular solution to address these challenges. This blog post will explore the benefits of dockerizing Spring Boot apps and provide a step-by-step guide to containerize your projects. What is Docker? Docker is an open-source platform that allows you to develop, ship, and run applications inside containers....

July 20, 2023 · 11 min · Emmy Steven

How to Handle Trailing Slashes in Spring Boot

Introduction Two types of slashes exist, the backward slash and the forward slash. A good way to differentiate the two is that a backward slash leans backward(), while a forward slash leans forward(/) The slash we want to handle in Spring Boot is the forward slash. We want to handle trailing forward slash at the end of an API endpoint. The problem When you send a request to this API endpoint api/users/add it will return a state code of 200, but when you send a request to this API endpoint api/users/add/ it will return a status code of 404....

July 10, 2023 · 5 min · Emmy Steven