70.8 Configure Tomcat
Generally you can follow the advice from Section 69.8, “Discover built-in options for external properties” about @ConfigurationProperties
(ServerProperties
is the main one here), but also look at EmbeddedServletContainerCustomizer
and various Tomcat-specific *Customizers
that you can add in one of those. The Tomcat APIs are quite rich so once you have access to the TomcatEmbeddedServletContainerFactory
you can modify it in a number of ways. Or the nuclear option is to add your own TomcatEmbeddedServletContainerFactory
.