Spring Boot enable like in web.xml

后端 未结 3 2156
猫巷女王i
猫巷女王i 2020-12-09 22:52

I have a problem with Spring Boot configuration. I got exception on some mobile devices which should use sockets:

java.lang.IllegalArgumentException: Async s         


        
3条回答
  •  星月不相逢
    2020-12-09 23:52

    Maybe it worth to mention that Spring Boot has async-support enabled by default for dispatcher servlet and all filters

    Quotation from github:

    We automatically set async-supported to true because the DispatcherServlet knows how to work with such requests and it's basically up to individual controller methods to return something like a DeferredResult. Furthermore, we also set async-supported for any filter (provided via getServletFilters) along with setting the DispatcherType for each filter to include ASYNC.

    At least my practice supports this statement

提交回复
热议问题