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

Amazon EC2 Hidden Benefits that Nobody Talks About

What is EC2? EC2 stands for Elastic Compute Cloud. It is a web solution created by Amazon Web Services (AWS) that provides resizable compute capacity in the cloud. It plays a pivotal role in the AWS infrastructure as it allows users to rent virtual servers, known as instances, to run their applications. EC2 offers a wide range of instance types with varying compute, memory, storage, and networking capabilities to cater to diverse workloads....

June 30, 2023 · 8 min · Emmy Steven

Why Every Developer Needs Elastic Beanstalk

What is Elastic Beanstalk Elastic Beanstalk is a service fully managed deployment solution or service offered by Amazon Web Services (AWS). Elastic Beanstalk tries to simplify the deployment and management of web applications. This service is designed to remove the complexity of infrastructure provisioning and configuration. Elastic Beanstalk allows developers to focus on development rather than dealing with infrastructure concerns. An Overview of Elastic Beanstalk’s Components Elastic Beanstalk consists of several key components that work together to provide a streamlined deployment and management experience for web applications....

June 20, 2023 · 7 min · Emmy Steven

Git Cheat Sheet

What is Git? Git is a distributed version control system (VCS) used in software development to manage source code and track changes over time. It allows multiple developers to work on a project simultaneously and collaborate effectively. At its core, Git helps developers track modifications made to files in a project. Instead of saving complete copies of each file for every change, Git focuses on capturing and storing the differences or “delta” between versions....

June 10, 2023 · 5 min · Emmy Steven