Tag: Java
-

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

Problems I’ve Learned After Using Microservices Architecture for 10 Years
Don’t use a microservices architecture to create a new project. Don’t add complexity. I’ve worked on 3 projects with microservices architecture which shouldn’t have use it.
-

How to Use the Fluent Style to Easily Create a Dataset for My Unit Tests
When writing unit tests or integration tests, I have to create objects. Sometimes with a lot of mandatory fields. Instead of repeating this, instead of using utils methods, I use the Fluent style.
