1. 25 3月, 2016 1 次提交
  2. 21 3月, 2016 1 次提交
    • S
      Fix escaping of # · 2a715e9c
      Stephane Nicoll 提交于
      This commit disables the "quotes" substitutions on specific XML
      examples that require to use the reserved `#` character.
      
      Issue: SPR-14074
      2a715e9c
  3. 19 3月, 2016 1 次提交
  4. 15 3月, 2016 2 次提交
    • S
      Polish doc · 2a9b2ca5
      Stephane Nicoll 提交于
      Issue: SPR-14012
      2a9b2ca5
    • S
      Prevent non public bean to be exposed to JMX · 33a4e9e5
      Stephane Nicoll 提交于
      Previously, a package private `@ManagedResource` annotated bean was
      registered to the JMX domain even if any attempt to invoke an operation
      on it will fail since it has to be public.
      
      This commit validates that any `@ManagedResource` annotated bean is
      public and throws an InvalidMetadataException otherwise. Note that the
      actual bean type does not have to be public as long as the class
      annotated with `@ManagedResource` in the hierarchy is pubic and no extra
      operations or attributes are defined on the child.
      
      Issue: SPR-14042
      33a4e9e5
  5. 12 3月, 2016 1 次提交
  6. 11 3月, 2016 1 次提交
  7. 09 3月, 2016 1 次提交
    • P
      Allow @ContextConfiguration to be omitted · 22444617
      Phillip Webb 提交于
      Prior to this commit, the @ContextConfiguration annotation was required
      to be present even if default XML files, Groovy scripts, or
      @Configuration classes were detected; however, in such cases the
      @ContextConfiguration was typically declared empty and therefore
      seemingly unnecessary boilerplate.
      
      This commit permits @ContextConfiguration to be omitted whenever it can
      be reasonably deduced. Consequently, integration tests such as the
      following are now supported.
      
          @RunWith(SpringRunner.class)
          public class MyTest {
      
              @Autowired String myBean;
      
              @test public void example() { /* ... */ }
      
              @Configuration
              static class Config {
      
                  @Bean String myBean() {
                      return "Hello";
                  }
              }
          }
      
      Issue: SPR-13955
      22444617
  8. 08 3月, 2016 1 次提交
  9. 05 3月, 2016 2 次提交
  10. 04 3月, 2016 1 次提交
  11. 02 3月, 2016 1 次提交
  12. 01 3月, 2016 3 次提交
    • B
      Support conditional updates in ServletWebRequest · 0d6f8005
      Brian Clozel 提交于
      Prior to this commit, `ServletWebRequest.checkNotModified` would only
      support conditional GET/HEAD requests with "If-Modified-Since" and/or
      "If-None-Match" request headers. In those cases, the server would return
      "HTTP 304 Not Modified" responses if the resource didn't change.
      
      This commit adds support for conditional update requests, such as
      POST/PUT/DELETE requests with "If-Unmodified-Since" request headers.
      If the underlying resource has been modified since the specified date,
      the server will return a "409 Precondition failed" response status
      to prevent concurrent updates.
      
      Even if the modification status of the resource is reversed here
      (modified vs. not modified), we're keeping here the same intent for the
      return value, which signals if the response requires more processing or
      if the handler method can return immediately:
      
      ```
      if (request.checkNotModified(lastModified)) {
        // shortcut exit - no further processing necessary
        return null;
      }
      ```
      
      Issue: SPR-13863
      0d6f8005
    • S
      Introduce composed annotations for @RequestMapping · 467b5f3f
      Sam Brannen 提交于
      This commit introduces the following common composed annotations for
      @RequestMapping in Spring MVC and Spring MVC REST.
      
      - @GetMapping
      - @PostMapping
      - @PutMapping
      - @DeleteMapping
      - @PatchMapping
      
      Issue: SPR-13992
      467b5f3f
    • S
      Introduce composed annotations for web scopes · b423596b
      Sam Brannen 提交于
      This commit introduces the following common composed annotations for
      web scopes.
      
      - @RequestScope
      - @SessionScope
      - @ApplicationScope
      
      Issue: SPR-13993
      b423596b
  13. 29 2月, 2016 1 次提交
    • S
      Support @[Before|After]Transaction on non-public methods · a2bfe866
      Sam Brannen 提交于
      In order to align with the relaxed programming models of TestNG and the
      upcoming JUnit 5 (with regard to method visibility), this commit
      removes the requirement that @BeforeTransaction and @AfterTransaction
      methods must be 'public'.
      
      Issue: SPR-13997
      a2bfe866
  14. 28 2月, 2016 1 次提交
    • S
      Introduce SpringRunner 'alias' for SpringJUnit4ClassRunner · 9d3dd1bc
      Sam Brannen 提交于
      This commit introduces a SpringRunner extension of
      SpringJUnit4ClassRunner that is intended to be used as an 'alias' for
      SpringJUnit4ClassRunner, primarily in order to simplify configuration
      of JUnit 4 based integration tests.
      
      Developers can use this alias as follows:
      
          @RunWith(SpringRunner.class)
          public class MySpringIntegrationTests { ... }
      
      Issue: SPR-13954
      9d3dd1bc
  15. 25 2月, 2016 1 次提交
  16. 24 2月, 2016 1 次提交
    • R
      Add ExpectedCount · 91872b0d
      Rossen Stoyanchev 提交于
      MockRestServicesServer now supports an expect variant that accepts
      a range of expected count of executions.
      
      Issue: SPR-11365
      91872b0d
  17. 19 2月, 2016 1 次提交
    • B
      Add weak ETag support in ShallowEtagHeaderFilter · 1c2ac49f
      Brian Clozel 提交于
      This commit adds weak ETag support in ShallowEtagHeaderFilter.
      This improves the behavior of the filter in tow ways:
      
      * weak ETags in request headers such as `W/"0badc0ffee"` will be
      compared with a "weak comparison" (matching both weak and strong ETags
      of the same value)
      * when enabled with the "writeWeakETag" init param, the filter will
      write weak Etags in its HTTP responses
      
      Issue: SPR-13778
      1c2ac49f
  18. 17 2月, 2016 1 次提交
  19. 12 2月, 2016 1 次提交
  20. 30 1月, 2016 1 次提交
  21. 29 1月, 2016 1 次提交
  22. 27 1月, 2016 3 次提交
  23. 26 1月, 2016 2 次提交
  24. 25 1月, 2016 1 次提交
  25. 22 1月, 2016 4 次提交
  26. 18 1月, 2016 1 次提交
    • S
      Support for global separator in JDBC namespace · 714ae268
      Stephane Nicoll 提交于
      Previously, if a database needs to be initialized with several scripts
      and many (or all) use a custom separator, said separator must be repeated
      for each script.
      
      This commit introduces a `separator` property at the parent element level
      that can be used to customize the default separator. This is available
      for both the `initialize-database` and `embedded-database` elements.
      
      Issue: SPR-13792
      714ae268
  27. 16 1月, 2016 2 次提交
  28. 15 1月, 2016 1 次提交
  29. 12 1月, 2016 1 次提交