Class HttpServiceRegistrationBean


@Deprecated
public class HttpServiceRegistrationBean
extends AbstractServiceRegistrationBean<HttpService,​HttpServiceRegistrationBean,​Object,​HttpHeaders>
Deprecated.
Use ArmeriaServerConfigurator.

             > @Bean
             > public ArmeriaServerConfigurator myService() {
             >     return server -> {
             >         server.route()
             >               .path("/ok")
             >               .methods(HttpMethod.GET, HttpMethod.POST)
             >               .defaultServiceName("myService")
             >               .decorator(LoggingService.newDecorator())
             >               .build(new MyService());
             >     };
             }
A bean with information for registering an http service. It enables Micrometer metric collection of the service automatically.

 > @Bean
 > public HttpServiceRegistrationBean okService() {
 >     return new HttpServiceRegistrationBean()
 >             .setServiceName("okService")
 >             .setService(new OkService())
 >             .setRoute(Route.builder().path("/ok").methods(HttpMethod.GET, HttpMethod.POST).build())
 >             .setDecorators(LoggingService.newDecorator());
 > }