private HttpWebHandlerAdapter httpHandler(GenericApplicationContext context) { return (HttpWebHandlerAdapter) RouterFunctions.toHttpHandler( context.getBean(RouterFunction.class), HandlerStrategies.empty() .exceptionHandler(context.getBean(WebExceptionHandler.class)) .codecs(config -> config.registerDefaults(true)).build()); }
private HttpHandler httpHandler(GenericApplicationContext context) { return RouterFunctions.toHttpHandler(context.getBean(RouterFunction.class), HandlerStrategies.empty() .exceptionHandler(context.getBean(WebExceptionHandler.class)) .codecs(config -> config.registerDefaults(true)).build()); }
private HttpWebHandlerAdapter httpHandler(GenericApplicationContext context) { return (HttpWebHandlerAdapter) RouterFunctions.toHttpHandler( context.getBean(RouterFunction.class), HandlerStrategies.empty() .exceptionHandler(context.getBean(WebExceptionHandler.class)) .codecs(config -> config.registerDefaults(true)).build()); }