Configuring a Tomcat Connection Pool in Spring Boot 1. Overview Spring Boot is an opinionated – yet powerful – layer of abstraction placed on top of a plain Spring platform, which makes developing stand-alone and web applications a no-brainer. Spring Boot provides a few handy “starter” dependencies, aimed at running… Continue Reading spring-boot-tomcat-connection-pool

Programmatically Create, Configure and Run a Tomcat Server 1. Overview In this quick article, we’re going to programmatically create, configure and run a Tomcat server. 2. Setup Before we get started, we need to setup our Maven project by adding the below dependencies to our pom.xml: <dependencies> <dependency> <groupId>org.apache.tomcat</groupId> <artifactId>tomcat-catalina</artifactId>… Continue Reading tomcat-programmatic-setup

How to Configure Spring Boot Tomcat 1. Overview Spring Boot web applications include a pre-configured, embedded web server by default. In some situations though, we’d like to modify the default configuration to meet custom requirements. In this tutorial, we’ll look at a few common use cases for configuring the Tomcat… Continue Reading spring-boot-configure-tomcat

How to Change the Default Port in Spring Boot 1. Introduction Spring Boot provides sensible defaults for many configuration properties. Still, we sometimes need to customize these with our case-specific values. A common use case is changing the default port for the embedded server. In this quick tutorial, we’ll cover… Continue Reading spring-boot-change-port

Comparing Embedded Servlet Containers in Spring Boot 1. Introduction The rising popularity of cloud-native applications and micro-services generate an increased demand for embedded servlet containers. Spring Boot allows developers to easily build applications or services using the 3 most mature containers available: Tomcat, Undertow, and Jetty. In this tutorial, we’ll… Continue Reading spring-boot-servlet-containers