Tag: Java
-
Where To Write Documentation

I can use Word file, a private Wiki or write the documentation into comments inside the code base. Which one is the best? What are the advantages and disadvantages of each documentation? In this post, I explain 3 types of documentation, with their advantages and disadvantages.
-
OAuth2 With Google, Spring Boot And Angular

In this article, I describe how to create the Google OAuth2 client, how to connect Spring Security to Google OAuth2 workflow, and have a React frontend to communicate with my Spring Boot application.
-
Feature Flags: Deploy Unstable Features

In this article I describe the features flags. I explain when I use them and how I use them in different situations. I explain the needed maintenance and the final clean up.
-
Optimize Your API Using Memoization

In this article I describe how to use the memoization to optimize the response time of a request. I explain how to prepare the code and how to apply the solution.
-
Deploy A Spring Boot Application in AWS Lambda

In the article of today, I’m gonna explain how to deploy a Spring Boot application in AWS Lambda. I want to deploy a complete web application into a serverless platform. The difference is that I want to create several endpoints in my Spring Boot application. And I want to map them all to a single…
-
4 Ways to Protect Your Application From Being Hacked

In this article I describe 4 ways to secure an application to avoid 90% of the attacks. 4 simple ways to put in place in every kind of application. From using HTTPs to an external configuration system.
-
How to Solve a NullPointerException Correctly

In Java, one of the first exceptions everyone sees is the NullPointerException. Unfortunately, it took me some time to understand how to solve it correctly. In this article, I explain how to solve them correctly.
-
Solve the CORS error with Spring Security

In this article I explain how to configure the CORS allowed frontend in a Spring Boot application when using Spring Security.
-
Protect your Spring Boot application with JWT

The article provides a comprehensive guide on how to protect a Spring Boot application using JWT and Spring Security. It offers a detailed explanation on various aspects, including adding dependencies, encoding passwords, creating login endpoints, JWT HTTP filtering, and configuring Spring Security. It also emphasizes the importance of having protected routes and a HTTP filter…
-
The Hardest Bug I’ve Faced

In this article, I will describe some of the worst bugs that happen in an application. Let’s start by splitting them into two main categories: those which I can reproduce on my laptop, and those I can’t reproduce on my laptop.
