@Bean
    public ArmeriaServerConfigurator armeriaTomcat() {
        final WebServer webServer = ((WebServerApplicationContext) applicationContext).getWebServer();
        if (webServer instanceof TomcatWebServer) {
            final Tomcat tomcat = ((TomcatWebServer) webServer).getTomcat();

            return serverBuilder -> serverBuilder.serviceUnder("/tomcat/api/rest/v1",
                                                               TomcatService.of(tomcat));
        }
        return serverBuilder -> {};
    }
Bean to configure Armeria Tomcat service.
@return configuration bean.
it/spring/boot3-mixed-tomcat10/src/main/java/com/linecorp/armeria/spring/mixed/tomcat/SpringTomcatApplication.java