You can add a JettyServerCustomizer
to your application context to customize Jetty:
@Bean
JettyServerCustomizer jettyCustomizer() {
return new JettyServerCustomizer() {
@Override
public void customize(Server server) {
//do something
}
};
}
But the configuration you're looking for I think is at the AsyncContext
level, and that's handled by Spring MVC. Try this configuration:
@Configuration
public static class MvcConfig extends WebMvcConfigurerAdapter {
@Override
public void configureAsyncSupport(AsyncSupportConfigurer configurer) {
configurer.setDefaultTimeout(60000);
}
}