Tag: Java
-

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.
-

Create a RESTful CRUD Application with Spring Boot
In this article, I will show what are the main endpoint needed to have a CRUD application. I show how and explain to create those endpoints to be RESTful compliant.
-

Connect a Database to a Spring Boot Application
In this article, I will connect my Spring Boot Application to a PostgreSQL database. Adding the dependencies, configuring the application and creating the entities and repositories.
-

Creation of Spring Boot App and CORS Configuration
In this first article, I will start by creating the Spring Boot application and configure the CORS to be accessible by any Frontend (Angular or React).
-

Java 21 is coming! What’s new?
Java 21 will be released the September 19th of 2023. But the most important, is what this version includes. String templates, Record Patterns, Pattern Matching for Switch and the Virtual Threads.
-

For complex topics, I stop using Spring Services
When we need to write complex Services, using a Object Oriented solution will ease the implementation and facilitate the unit tests.
-

Which Authentication System to Choose?
Choose the right authentication system without compromising the security. This may be a hard topic to handle on every project.
