Some servlet / quay questions

Having ServletAPI plus configurations that you can do for a berth or any other web container

  • Do we have a way to limit request sizes? (i.e. close the connection when publishing more than 50 MB).
  • Is there any way to kill sending a request that takes too long?
  • When sending a request to your own customized servlet, we can redirect (not redirect) the request to the "servlet" by default.? Will it work all the time?

    RequestDispatcher rd = getServletContext().getNamedDispatcher("default");
    HttpServletRequest wrapped = new HttpServletRequestWrapper(req) {
      public String getServletPath() { return ""; }
    }; 
    rd.forward(wrapped, resp);
    

Thanks in advance!

+3
source share
1 answer

Spring . Spring, , , Spring. , , .

org.springframework.web.multipart.commons.CommonsMultipartResolver org.springframework.web.multipart.MaxUploadSizeExceededException

CommonsMultipartResolver maxUploadSize, .

+2

Source: https://habr.com/ru/post/1723300/


All Articles