static void configureServices(ServerBuilder sb) {
        sb.annotatedService("/pathPattern", new PathPatternService())
          .annotatedService("/injection", new InjectionService())
          .annotatedService("/file", new FileUploadService())
          .annotatedService("/messageConverter", new MessageConverterService())
          .annotatedService("/exception", new ExceptionHandlerService())
          .serviceUnder("/docs",
                        DocService.builder()
                                  .examplePaths(PathPatternService.class,
                                                "pathsVar",
                                                "/pathPattern/paths/first/foo",
                                                "/pathPattern/paths/second/bar")
                                  .examplePaths(PathPatternService.class,
                                                "pathVar",
                                                "/pathPattern/path/foo",
                                                "/pathPattern/path/bar")
                                  .exampleRequests(MessageConverterService.class,
                                                   "json1",
                                                   "{\"name\":\"bar\"}"
                                  )
                                  .build());
    }
Returns a new {@link Server} instance configured with annotated HTTP services.

@param port the port that the server is to be bound to
examples/annotated-http-service/src/main/java/example/armeria/server/annotated/Main.java