Learn about adding configuration to an embedded servlet container.
- [Instructor] One of the biggest concerns…that many organizations have when moving to Spring Boot…is how do they 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.…Now by default Spring Boot will give you a servlet…that responds at the context root…and is auto-configured with many of the defaults…that we come to love, at least those of us…who use Spring Boot a lot for demos.…
That being said, if you want to add…your own servlets, your own filters,…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 two very easy ways.…The first is to go into one of your configuration classes…and annotate a method with @Bean…that serves one of those objects.…
AuthorFrank P Moley III
- Creating a Spring Boot application
- Configuring a Spring Boot app
- Leveraging profiles
- Packaging and running Spring Boot web apps
- Building a command-line application
- Using Spring Boot starters: Spring Data, Spring Security, and more
- Extending Spring Boot
- Using Spring Boot Actuator to monitor app health and other metrics
Skill Level Intermediate
What you need to know4m 14s
1. Boot Camp
2. Web Applications with Spring Boot
3. Command-Line Applications with Spring Boot
4. Using Spring Boot Starters
5. Extending Spring Boot
6. Extending Actuator
Next steps3m 1s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.