JSON Structured Logging in Spring Boot 3.4

Logging is an essential aspect of software development, providing valuable insights during application troubleshooting. With the release of Spring Boot 3.4, structured logging in JSON format has been made easier, enabling developers to leverage advanced search and analytics features. This article will guide you through the steps of setting up JSON structured logging in Spring Boot 3.4, along with customizing log formats to fit your application’s needs.

Read more

How to configure Logback with Spring Boot

Logback is a powerful and flexible logging framework for Java applications. It is designed to be faster and have a smaller memory footprint compared to its predecessor, Log4j. Logback is the default logging framework used in Spring Boot, making it an excellent choice for enterprise applications due to its simplicity and performance.

Read more

How to change the Server port in Spring Boot

In a Spring Boot application, the default web server port is set to 8080. However, there are various scenarios where you might need to change this port, such as avoiding conflicts with other applications or adhering to specific deployment requirements. This tutorial will guide you through multiple methods to change the default web server port in a Spring Boot application, ensuring you have the flexibility to choose the approach that best fits your needs.

Read more

Configuring Spring Boot Tomcat WebServer

This tutorial guides you through customizing Spring Boot’s embedded Tomcat web server for optimal performance and security. The embedded server eliminates the need for a separate application server like traditional Tomcat installations.

Read more

Upgrading to Spring Boot 3 with OpenRewrite

Migrating to Spring Boot 3 can be a challenge for developers, given the framework’s substantial updates. Manual code adjustments across multiple projects can be time-consuming and error-prone. This article explores how OpenRewrite can streamline this process. By leveraging a series of specialized recipes, developers can automate many of the necessary code transformations.

Read more