Undertow is a lightweight, high-performance web server that you can use as Web Server in Spring Boot applications. This tutorial will guide you through the steps to configure Undertow and explain specific properties to optimize its performance.
Configuration
Spring Boot applications supply a variety of powerful mechanisms for developers to dynamically configure and reconfigure their applications, even while the app is running. In this section we will learn how to configure Spring Boot components (such as the Web server and other components) to achieve your desired configuration.
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.
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.
Configuring Tomcat JDBC Pool on Spring Boot
Spring-Boot supports HikariCP (default), tomcat-jdbc and Commons DBCP as Connection Pool for your Database. Each pool, however, uses a different set of properties. In this tutorial we will learn how to configure the tomcat-jdbc Connection Pool.
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.
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.
Configure Spring Boot to use Undertow Web server
By default, Spring boot uses Tomcat as embedded Web server. There are, however, other available Web servers in case you need some specific features. In this tutorial we will learn how to use Undertow as Web Server.
How to use an external JAR in a Spring Boot application
This article presents different ways to include an external JAR when starting a Spring Boot application from the Command Line.
Run Java 18 in your Spring Boot applications
This short article shows how to set up and use Java 18 in your Spring Boot applications.
How to restrict access to Spring Boot applications to a list of IP Addresses?
You can configure an Access Control List for IP Addresses in Spring Boot through the IPAddressAccessControlHandler. Let’ see how to do it.