I am trying to set up an embedded Tomcat using Spring Boot with two connectors (a HTTP and a HTTPS) and a shared executor for both of them.
I have configured the HTTPS connector on the Spring Boot application.properties and then added the HTTP connector programatically as described in the documentation.
However, I don't see any option to use the same Executor for both connectors. I would like to translate into Spring Boot's configuration this kind of setup:
<Executor name="tomcatSharedThreadPool" namePrefix="catalina-exec-"
maxThreads="150" minSpareThreads="4"/>
<Connector executor="tomcatSharedThreadPool"
port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="443" />
<Connector executor="tomcatSharedThreadPool"
port="443" protocol="HTTP/1.1"
connectionTimeout="20000" />
Anyone know a way to do this ?
Thanks.