1. 26 9月, 2013 1 次提交
    • B
      Add NoHandlerFoundException to DispatcherServlet · 62d6a43c
      Brian Clozel 提交于
      Prior to this commit, the DispatcherServlet would send an error
      response using the HttpServlet API when no Handler was found to
      handle this request.
      
      Now the DispatcherServlet can be configured to throw a
      NoHandlerFoundException, when the throwExceptionIfNoHandlerFound
      property is set to "true".
      Those exceptions can be later on caught by default or custom
      HandlerExceptionResolvers/ExceptionHandlers.
      
      Issue: SPR-10481
      62d6a43c
  2. 01 12月, 2012 1 次提交
    • R
      polish web.Mock* classpath · 149e6f64
      Rob Winch 提交于
      Previously when running the tests for spring-web, spring-webmvc,
      spring-test-mvc, and spring-orm there were possible collissions in the
      classpath due to the fact that each had its own copy of the web.Mock*
      classes in it. This causes uncertainty for which class the code was
      running against. Furthermore, the maintance of keeping the copies up to
      date was tedious.
      
      Now there are two copies of the web.Mock* classes. The ones that exist
      in spring-test main sources and a copy that supports servlet 3 within
      spring-web test sources. The copy in spring-web test sources has been
      moved to a new package to avoid having the classes exist twice on the
      classpath within Eclipse.
      149e6f64
  3. 11 9月, 2012 1 次提交
    • R
      Add error request attribute for 500 reponses · 48b963aa
      Rossen Stoyanchev 提交于
      DefaultHandlerExceptionResolver and ResponseEntityExceptionHandler now
      both set the "javax.servlet.error.exception" request attribute to the
      raised exception, allowing custom error pages configured via web.xml.
      
      Issue: SPR-9653
      48b963aa
  4. 28 8月, 2012 1 次提交
    • R
      Polish standard Spring MVC exception handling · da05b094
      Rossen Stoyanchev 提交于
      Rename ExceptionHandlerSupport to ResponseEntityExceptionHandler and
      emphasize the contrast to DefaultHandlerExceptionResovler -- i.e.
      one returns a ResponseEntity and relies on message converters while
      the other returns a ModelAndView and relies on view resolution.
      
      Issue: SPR-9290
      da05b094
  5. 21 8月, 2012 1 次提交
    • R
      Add ExceptionHandlerSupport class · 1cf4a2fa
      Rossen Stoyanchev 提交于
      The new class is functionally equivalent to the
      DefaultHandlerExceptionResolver (i.e. it translates Spring MVC
      exceptions to various status codes) but uses an @ExceptionHandler
      returning a ResponseEntity<Object>, which means it can be customized to
      write error content to the body of the response.
      
      Issue: SPR-9290
      1cf4a2fa