From 8 to 16

Java 16 is released and it’s time to leave our good ol’ Java 8 and begin to use the new language features Java brings with its versions.

In this post, I will only cover some of the newest Java features.

MDC in Spring MVC

Logging with Mapped Diagnostic Context (MDC) to provide a way to enrich log messages with pieces of information that can be useful for better tracking program execution.

In this post, we will see how to include basic MDC, such as request information or the authenticated user id, with Spring MVC.