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

Using XML Configuration in Spring Boot Applications

Spring Boot 3 primarily favors annotation-based configuration for its simplicity and maintainability. However, there are scenarios where you might need to integrate existing XML configurations into your application. This tutorial demonstrates how to achieve this using a @Configuration class and the @ImportResource annotation.

Read more