- 15 7月, 2018 1 次提交
-
-
由 Juergen Hoeller 提交于
Introduces a configure method pattern for Supplier-style configuration and a common SingletonSupplier decorator for method reference suppliers. Also declares jcache.config and jcache.interceptor for non-null conventions. Issue: SPR-17021
-
- 14 7月, 2018 2 次提交
-
-
由 Juergen Hoeller 提交于
Issue: SPR-17034
-
由 Rossen Stoyanchev 提交于
-
- 13 7月, 2018 3 次提交
-
-
由 Rossen Stoyanchev 提交于
This commit removes the session threshold check added recently which is not effective since maxIdleTime is usually much longer than the frequency of checks. The lazy triggering of expiration checks during create or retreive are simple and the most effective This commit also adds a maxSessions limit on the total number of sessions that can be created at any one time, a getSessions method for management purposes, and a removeExpiredSessions public API for manual triggering of expiration checks. Issue: SPR-17020, SPR-16713
-
由 Brian Clozel 提交于
-
由 Brian Clozel 提交于
Prior to this commit, `WebClient` would throw `IllegalArgumentException` when receiving an HTTP response with an unknown HTTP status code. This commit is a follow up of SPR-16748 (supporting non-standard HTTP status codes on the reactive `ClientHttpResponse`), and is mirroring SPR-15978 (supporting non-standard HTTP status codes in `RestTemplate`). With this change, `WebClient` now tolerates unknown status codes in some cases, while not offering that choice as a first class citizen: `HttpStatus` is still the preferred way to deal with HTTP status codes. Here's how `WebClient` will behave when fetching the full response: ``` // Given a remote endpoint returning a "123" HTTP status code Mono<ClientResponse> result = this.webClient.get() .uri("/status/123") .exchange(); // will still throw an IllegalArgumentException HttpStatus status = result.block().statusCode(); // is safe and will return 123 int statusCode = result.block().rawStatusCode(); ``` Resolving directly the response body with `retrieve()` is different. ``` // will send an error signal with a UnknownHttpStatusCodeException Mono<String> result = this.webClient.get() .uri("/status/123") .retrieve() .bodyToMono(String.class); ``` In general, `WebClient` will provide high-level support for well-known HTTP status codes, like error handling with `WebClient.ResponseSpec#onStatus`. For such support with unknown status codes, it is better to rely on lower level constructs such as `ExchangeFilterFunction`. Issue: SPR-16819
-
- 12 7月, 2018 2 次提交
-
-
由 Juergen Hoeller 提交于
-
由 Rossen Stoyanchev 提交于
1. Add session count threshold as am extra pre-condition. 2. Check pre-conditions for expiration checks on every request. Effectively an upper bound on how many sessions can be created before expiration checks are performed. Issue: SPR-17020
-
- 11 7月, 2018 11 次提交
-
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
Issue: SPR-16203
-
由 Rossen Stoyanchev 提交于
Issue: SPR-17029
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
Issue: SPR-16189
-
由 Rossen Stoyanchev 提交于
In preparation for SPR-16189.
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
Issue: SPR-16902
-
由 Juergen Hoeller 提交于
Issue: SPR-17028
-
由 Juergen Hoeller 提交于
Issue: SPR-16398
-
- 10 7月, 2018 7 次提交
-
-
由 Stephane Nicoll 提交于
* pr/1880: Fix typo
-
由 Guilherme Alan Ritter 提交于
Closes gh-1880
-
由 Brian Clozel 提交于
This commit restricts the support of `"Content-Range"` when returning `Resource` instances from Controllers - now only "HTTP 200 OK" responses will be considered, as Controllers might want to handle content range themselves. Issue: SPR-16921
-
由 xiexed 提交于
-
由 Rossen Stoyanchev 提交于
-
由 Brian Clozel 提交于
Issue: SPR-15762
-
由 zilong6 提交于
This commit improves the performance of `read` method variants to write to the cache in an optimized way. Issue: SPR-15762
-
- 09 7月, 2018 8 次提交
-
-
由 Arjen Poutsma 提交于
Issue: SPR-16997
-
由 Arjen Poutsma 提交于
This commit changes the Basic Authentication Consumer<HttpHeaders> to a basic setBasicAuth(String, String) method. Issue: SPR-16913
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
Also available on LocalSessionFactoryBean through HibernateExceptionTranslator, as with our former Hibernate 3 support. Issue: SPR-17015
-
由 Juergen Hoeller 提交于
Issue: SPR-17022
-
由 Juergen Hoeller 提交于
Issue: SPR-17018
-
由 Juergen Hoeller 提交于
-
由 stsypanov 提交于
-
- 08 7月, 2018 2 次提交
-
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
-
- 07 7月, 2018 4 次提交
-
-
由 Rossen Stoyanchev 提交于
Issue: SPR-17012
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
1. Use special category prefix "spring-web.reactivestreams" for logging of reactive streams signals in spring-web, since those are quite verbose would fill the logs at TRACE. 2. Add and use loggers in request and websocket session implementations separate from reactive streams bridge for regular TRACE logging. 3. Improve log messages and add where missing (e.g. for Reactor) Issue: SPR-16898
-
由 Rossen Stoyanchev 提交于
-