Recurring AsyncRequestTimeoutException in Spring Boot Admin log

后端 未结 2 521
别跟我提以往
别跟我提以往 2020-12-17 01:44

I\'m currently running Spring Boot Admin on my local machine for testing purposes and I\'m getting the following error nonstop. The application itself seems to be working f

相关标签:
2条回答
  • 2020-12-17 01:58

    I also had similar error. try this property in you application.yml

    spring:
      mvc:
        async:
          request-timeout: -1  
    
    0 讨论(0)
  • 2020-12-17 02:12

    Alternatively without spring boot, add

        @Override
        public void configureAsyncSupport(AsyncSupportConfigurer configurer) {
            long timeout = 300000;// for example 5 minutes
            WebMvcConfigurer.super.configureAsyncSupport(configurer);
            configurer.setDefaultTimeout(timeout);
        }
    

    to the configuration class that implements WebMvcConfigurer

    0 讨论(0)
提交回复
热议问题