This article presents different ways to include an external JAR when starting a Spring Boot application from the Command Line.
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.
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.
Configuring Tomcat Connection 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 Connection Pool.
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.
Configuring Undertow Pool size in Spring Boot
You can configure Undertow Pool size in Spring Boot applications through UndertowServletWebServerFactory. Let’s learn how to do it.
Configuring HTTP Session timeout in Spring Boot applications
You can configure HTTP Session Timeout for Spring Boot Applications in two ways:
Configuring Session Timeout in application.properties
The simplest option is to include in your application.properties the parameter server.servlet.session.timeout. For example:
server.servlet.session.timeout=60s
Also note that Tomcat will not allow you to set the timeout any less than 60 seconds.
Configuring Session Timeout Programmatically
Let’s say we want that our HttpSession last only two minutes. To make this happen, we can add to our WebConfiguration class an EmbeddedServletContainerCustomizer Bean with the following content:
How to disable web server configuration in Spring Boot ?
Spring Boot automatically starts an application in web server mode if it finds the web starter module in the classpath. … Read more
Configuring Spring Boot embedded Tomcat
In this tutorial you will learn how to configure the default Web Server embedded in Spring Boot
How to configure Web Server port in Spring Boot applications
Out of the box, Spring boot applications use the embedded tomcat server start at default port 8080
. You can change the default embedded server port to any other port, using any one of following options.
Configure Spring Boot to use Jetty Server
By default, Spring boot uses Tomcat as embedded Web server. There are, however, other available Web servers in case you … Read more