1. 14 12月, 2016 4 次提交
  2. 13 12月, 2016 22 次提交
  3. 12 12月, 2016 5 次提交
  4. 10 12月, 2016 3 次提交
    • B
      Allow RedirectAttributes on ExceptionHandlers · 17089d60
      Brian Clozel 提交于
      Prior to this commit, `@ExceptionHandler` methods could not be injected
      with `RedirectAttributes` arguments. This would make it impossible to
      handle an error by redirecting to another view and add flashmap
      attributes, to be included in the model when the next view is called.
      
      Here is an example:
      
      ```
      @ExceptionHandler(MyException.class)
      public String handleException(MyException ex, RedirectAttributes
          redirectAttributes) {
      
        redirectAttributes.addFlashAttribute("errorMessage",
            "This is an error message");
        return "redirect:/";
      }
      ```
      
      This commit adds a new `RedirectAttributesMethodArgumentResolver`
      instance in the list of pre-configured `HandlerMethodArgumentResolver`
      in `ExceptionHandlerExceptionResolver`.
      
      Issue: SPR-14651
      17089d60
    • J
      Collection injection may refer back to factory methods on same bean again · 547b9638
      Juergen Hoeller 提交于
      Issue: SPR-14996
      547b9638
    • J
      CommonsMultipartFile.getOriginalFilename() can be configured to preserve... · aa29495d
      Juergen Hoeller 提交于
      CommonsMultipartFile.getOriginalFilename() can be configured to preserve header-specified filename as-is
      
      Issue: SPR-14613
      aa29495d
  5. 09 12月, 2016 6 次提交