1. 16 8月, 2018 5 次提交
    • J
      SmartLifecycle default methods for auto-startup in default phase · 2ec8fa9c
      Juergen Hoeller 提交于
      Issue: SPR-17188
      2ec8fa9c
    • S
      Upgrade to Reactor Californium-M2 · 446a604a
      Stephane Nicoll 提交于
      446a604a
    • B
      Polish · cd403f41
      Brian Clozel 提交于
      cd403f41
    • B
      Drain JDK HTTP client response body in all cases · 23fc6f6b
      Brian Clozel 提交于
      Prior to this commit, when using the `SimpleClientHttpRequestFactory`
      as a driver for `RestTemplate`, the HTTP response body would only be
      drained if there was an attempt to read it in the first place.
      
      This commit ensures that, even if there's no attempt at reading the
      response body, it is properly drained when the response is closed to
      make sure that the connection is released in a proper state and can be
      put back in the connection pool for reuse.
      
      Issue: SPR-17181
      23fc6f6b
    • B
      Add ResponseEntity.of(Optional) variant · 432cdd78
      Brian Clozel 提交于
      When dealing with `Optional` values in a Controller handler (for
      example, values coming from a Spring Data repository), developers might
      reuse this code snippet quite often:
      
      ```
      @GetMapping("/user")
      public ResponseEntity<Optional<User>> fetchUser() {
        Optional<User> user = //...
        return user.map(ResponseEntity::ok).orElse(notFound().build());
      }
      ```
      
      This commit adds a new static method on `ResponseEntity` for that,
      simplifying the previous snippet with `return ResponseEntity.of(user);`
      
      Note that in case more specific HTTP response headers are required by
      the application, developers should use other static methods to
      explicitly tell  which headers should be used in each case.
      
      Issue: SPR-17187
      432cdd78
  2. 15 8月, 2018 14 次提交
  3. 14 8月, 2018 4 次提交
  4. 13 8月, 2018 16 次提交
  5. 12 8月, 2018 1 次提交