From the course: Spring Boot 2.0 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Configuring embedded Tomcat

Configuring embedded Tomcat

From the course: Spring Boot 2.0 Essential Training

Start my 1-month free trial

Configuring embedded Tomcat

- [Instructor] One of the biggest concerns that some organizations have when moving to Spring Boot is how do they configure the servlet container that their application is running in. Many of them have specific requirements on how communications are to operate over a web enabled network. And as such configuring Tomcat is critical in moving into the Spring Boot world. Now, one of the areas that you can configure is in the servlets, filters, and listeners themselves. Now by default Spring Boot will give you a servlet that responds at the context route and is auto configured with many of the defaults that we've come to love. At least those of us that use Spring Boot a lot. That being said, if you want to add your own servlet, or your own filter, or your own listeners then there's a very simple way to do that. And that's to configure the servlets, filters, and listeners as beans. Now, you can do that in one of two ways. The…

Contents