1. 04 5月, 2016 1 次提交
  2. 28 4月, 2016 1 次提交
  3. 10 4月, 2016 1 次提交
  4. 06 4月, 2016 1 次提交
  5. 18 2月, 2016 1 次提交
  6. 27 1月, 2016 3 次提交
  7. 09 11月, 2015 2 次提交
  8. 07 7月, 2015 1 次提交
  9. 30 6月, 2015 1 次提交
  10. 31 5月, 2015 4 次提交
  11. 24 12月, 2014 2 次提交
    • R
      Improve @SessionAttributes support during redirect · ea05e0b1
      Rossen Stoyanchev 提交于
      Before this change attributes listed with @SessionAttributes would not
      be saved in the session when there was a redirect and the controller
      method declared a parameter of type RedirectAttributes.
      
      This change ensures it's the "default" model that is always the one
      checked for @SessionAttributes under all circumstances since
      RedirectAttributes is really only meant to provide String values to
      insert into or append to the the redirect URL.
      
      Issue: SPR-12542
      ea05e0b1
    • R
      Polish ModelAndViewContainer and update tests · ea2943fe
      Rossen Stoyanchev 提交于
      ea2943fe
  12. 21 10月, 2014 1 次提交
  13. 04 8月, 2014 1 次提交
  14. 17 6月, 2014 1 次提交
  15. 08 6月, 2014 1 次提交
    • R
      Add dependency ordering for @ModelAttribute methods · 56a82c1c
      Rossen Stoyanchev 提交于
      Before this change @ModelAttribute methods were not invoked in any
      particular order other than ensuring global @ControllerAdvice methods
      are called first and local @Controller methods second.
      
      This change introduces a simple algorithm that selects the next
      @ModelAttribute method to invoke by making a pass over all methods and
      looking for one that has no dependencies (i.e. @ModelAttribute
      input arguments) or has all dependencies resolved (i.e. available in
      the model). The process is repeated until no more @ModelAttribute
      methods remain.
      
      If the next @ModelAttribute method cannot be determined because all
      remaining methods have unresolved dependencies, the first available
      method is picked anyway just as before, i.e. with required
      dependencies created through the default constructor.
      
      Examples in ModelFactoryOrderingTests.
      
      Issue: SPR-6299
      56a82c1c
  16. 22 4月, 2014 1 次提交
  17. 28 1月, 2014 1 次提交
    • B
      Support Part/MultiPartFile arrays in ArgumentResolvers · cc0a8456
      Brian Clozel 提交于
      Prior to this commit, parts of a multipart HTTP request could be
      injected in @RequestPart and @RequestParam annotated arguments, when
      using types:
      * MultipartFile, Collection<MultiPartFile>
      * javax.servlet.Part, Collection<Part>
      
      This commits updates @RequestParam and @RequestPart argument resolvers
      and now allows the array versions of those types:
      * Part[]
      * MultiPartFile[]
      
      Note that the MockHtpServletRequest backing tests for standard
      Servlets implementations now uses a MultiValueMap to store parts
      (versus a simple hashmap).
      
      Issue: SPR-11353
      cc0a8456
  18. 27 11月, 2013 1 次提交
  19. 13 10月, 2013 1 次提交
    • R
      Add support for resolving message headers · 8ae88c20
      Rossen Stoyanchev 提交于
      This change adds support for @Header and @Headers annotated method
      arguments to spring-messaging. Also supported are arguments of type
      MessageHeaders, and MessageHeaderAccessor (including sub-types of
      MessageHeaderAccessort as long as they provide a wrap(Message<?>)
      static factory method).
      
      This change also renames @MessageBody to @Payload.
      
      Issue: SPR-10985
      8ae88c20
  20. 31 7月, 2013 1 次提交
  21. 21 6月, 2013 1 次提交
    • R
      Reverse SPR-10402 change that caused 3.2.3 regression · 2d8315fb
      Rossen Stoyanchev 提交于
      SPR-10402 in Spring Framework 3.2.3 treated empty request parameter
      values as missing values, if the empty value was turned into a null
      by a PropertyEditor or Converter. This caused the regression.
      
      Issue: SPR-10578, SPR-10402, SPR-10584
      2d8315fb
  22. 11 5月, 2013 1 次提交
    • R
      Allow treating empty @RequestParam as missing value · e39fe182
      Rossen Stoyanchev 提交于
      If type conversion turns an empty request parameter value (i.e. "") to
      null, we should treat it as a missing value. By default the
      ConversionService doesn't change empty strings and therefore one must
      explicitly convert them to null for example by registering a
      StringTrimmerEditor with emptyAsNull=true.
      
      Issue: SPR-10402
      e39fe182
  23. 07 3月, 2013 1 次提交
  24. 15 2月, 2013 1 次提交
  25. 30 1月, 2013 1 次提交
  26. 04 1月, 2013 1 次提交
    • P
      Remove duplicate test classes · 42b5d6dd
      Phillip Webb 提交于
      Prior to this commit many test utility classes and sample beans were
      duplicated across projects. This was previously necessary due to the
      fact that dependent test sources were not shared during a gradle
      build. Since the introduction of the 'test-source-set-dependencies'
      gradle plugin this is no longer the case.
      
      This commit attempts to remove as much duplicate code as possible,
      co-locating test utilities and beans in the most suitable project.
      For example, test beans are now located in the 'spring-beans'
      project.
      
      Some of the duplicated code had started to drift apart when
      modifications made in one project where not ported to others. All
      changes have now been consolidated and when necessary existing tests
      have been refactored to account for the differences.
      
      Conflicts:
      	spring-beans/src/test/java/org/springframework/beans/factory/ConcurrentBeanFactoryTests.java
      	spring-beans/src/test/java/org/springframework/beans/factory/support/BeanFactoryGenericsTests.java
      	spring-beans/src/test/java/org/springframework/beans/support/PagedListHolderTests.java
      42b5d6dd
  27. 29 12月, 2012 3 次提交
  28. 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
  29. 11 5月, 2012 1 次提交
    • R
      Fix issue with resolving Errors controller argument · c499df23
      Rossen Stoyanchev 提交于
      The ErrorsMethodArgumentResolver expects the preceding @ModelAttribute
      in the controller method signature to be the last one added in the
      model -- an assumption that can break if a model attribute is added
      earlier (e.g. through a @ModelAttribute method) and more attributes
      are added as well. This fix ensures when an @ModelAttribute is resolved
      as a controller method argument it has the highest index in the model.
      
      Issue: SPR-9378
      c499df23
  30. 31 1月, 2012 1 次提交
    • C
      Rename modules {org.springframework.*=>spring-*} · 02a4473c
      Chris Beams 提交于
      This renaming more intuitively expresses the relationship between
      subprojects and the JAR artifacts they produce.
      
      Tracking history across these renames is possible, but it requires
      use of the --follow flag to `git log`, for example
      
          $ git log spring-aop/src/main/java/org/springframework/aop/Advisor.java
      
      will show history up until the renaming event, where
      
          $ git log --follow spring-aop/src/main/java/org/springframework/aop/Advisor.java
      
      will show history for all changes to the file, before and after the
      renaming.
      
      See http://chrisbeams.com/git-diff-across-renamed-directories
      02a4473c