MaxUploadSizeExceededException doesn't invoke the exception handling method in Spring

前端 未结 7 1957
不知归路
不知归路 2020-12-09 19:29

I\'m using Spring 3.2.0. According to this answer, I have the same method in my annotated controller which implements the HandlerExceptionResolver interface suc

相关标签:
7条回答
  • 2020-12-09 19:57

    Your @ExcpetionHandler isn't working because those annotated methods only allow return types of ModelAndView or String, from what I remember. See this posting for further details.

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