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

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