Rossen Stoyanchev
3600644ed1
Require type-level @Controller annotation
...
Closes gh-22154
2021-12-14 07:09:08 +00:00
Rossen Stoyanchev
a15393836c
Merge branch '5.3.x' into main
2021-12-09 15:35:21 +00:00
Rossen Stoyanchev
e9083d7d20
Apply LogFormatUtils in more places
2021-12-09 14:53:52 +00:00
Juergen Hoeller
7f43128a0e
Merge branch '5.3.x'
...
# Conflicts:
# build.gradle
# spring-web/src/main/java/org/springframework/web/server/MediaTypeNotSupportedStatusException.java
# spring-web/src/main/java/org/springframework/web/util/ContentCachingRequestWrapper.java
# spring-webmvc/src/main/java/org/springframework/web/servlet/handler/HandlerMappingIntrospector.java
2021-12-03 22:42:05 +01:00
Juergen Hoeller
70974e006e
Upgrade to Tomcat 9.0.55, Undertow 2.2.13, RxJava 3.1.3, SmallRye Mutiny 1.2, Joda-Time 2.10.13, JRuby 9.2.20.1, HtmlUnit 2.55, Checkstyle 9.2
2021-12-03 22:32:00 +01:00
Arjen Poutsma
0a41da9ec9
Merge branch '5.3.x'
2021-12-03 12:52:30 +01:00
Arjen Poutsma
b84fe99d07
Polish "Throw 404 ResponseStatusException when no routes found"
...
See gh-25358
2021-12-03 12:01:49 +01:00
Ingmar van Dijk
69df27a99f
Throw 404 ResponseStatusException when no routes found
...
This commit makes it possible to customize 404 responses generated by
RouterFunctionWebHandler, by throwing an ResponseStatusException
instead of returning a standard 404 response.
See gh-25358
2021-12-03 12:01:49 +01:00
Rossen Stoyanchev
a9d2016007
Merge branch '5.3.x' into main
2021-12-03 09:27:11 +00:00
Rossen Stoyanchev
5649a6f8ef
Update exchangeToMono Javadoc
...
This time showing a more representative example.
See gh-27645
2021-12-03 09:21:21 +00:00
Arjen Poutsma
be6eeafe78
Revert change createException to createError
...
createError is not available in 5.3.
See gh-27645
2021-12-02 15:59:51 +01:00
Arjen Poutsma
720c30ce84
Merge branch '5.3.x'
2021-12-02 15:12:01 +01:00
Arjen Poutsma
b77b45434f
Change createException to createError
...
See gh-27645
2021-12-02 15:11:15 +01:00
Rossen Stoyanchev
2d2db530b1
Merge branch '5.3.x' into main
2021-12-02 12:35:48 +00:00
Rossen Stoyanchev
8b89128c7b
Update createException example for WebClient
...
Closes gh-27645
2021-12-02 11:53:43 +00:00
Arjen Poutsma
7794606305
Add ClientResponse::createError
...
This commit introduces ClientResponse::createError, returning
a Mono that terminates with a WebClientException.
Closes gh-27637
2021-12-01 11:10:10 +01:00
Arjen Poutsma
7a4207cd7b
Changes because HttpMethod changed to class
...
This commit contains changes made because HttpMethod changed from enum
to class.
See gh-27697
2021-11-30 13:44:36 +01:00
Arjen Poutsma
f57004db2c
Merge branch '5.3.x'
2021-11-30 13:41:19 +01:00
Arjen Poutsma
2a5713f389
Always copy ServerResponse headers
...
Prior to this commit, ServerResponse headers would only be written if
there were no existing headers with the same name, thus making it
impossible to overwrite existing headers.
With the changes in this commit, headers are always written.
Closes gh-27741
2021-11-30 13:38:16 +01:00
Arjen Poutsma
259bcd60fb
Change deprecated MimeType specificity usages
...
This commit changes all code that uses now deprecated methods in
MimeType and MediaType.
See gh-27580
2021-11-23 11:49:01 +01:00
Rossen Stoyanchev
1694691b79
Default to JDK HttpClient if no others present
...
Closes gh-23432
2021-11-22 12:20:30 +00:00
Rossen Stoyanchev
fe8d42ff59
Add JdkHttpClientResourceFactory
...
See gh-23432
2021-11-22 12:20:30 +00:00
Rossen Stoyanchev
dcc7154641
Polishing contribution
...
See gh-23432
2021-11-22 12:20:30 +00:00
Julien Eyraud
d930617442
JDK HttpClient connector for WebClient
...
See gh-21014
2021-11-22 12:20:30 +00:00
Juergen Hoeller
4750a9430c
Early removal of 5.x-deprecated code
...
Closes gh-27686
2021-11-18 09:18:06 +01:00
Juergen Hoeller
b88ed7f4bb
Update API version and package references for Jakarta EE 9
...
Closes gh-27689
See gh-25354
2021-11-17 12:39:23 +01:00
Arjen Poutsma
33ed92e552
Merge branch '5.3.x'
2021-11-10 16:26:31 +01:00
Arjen Poutsma
9197f15a30
Use ByteArrayDecoder in DefaultClientResponse::createException
...
This commit changes DefaultClientResponse::createException to use
the ByteArrayDecoder, instead of converting to DataBuffers and
turning these into a byte array.
Closes gh-27666
2021-11-10 16:24:49 +01:00
Christoph Dreis
5c972fcc54
Use Charset variants of URLEncoder and URLDecoder methods
2021-11-10 16:12:11 +01:00
Juergen Hoeller
75036fa0ad
Merge branch '5.3.x'
2021-11-10 14:22:58 +01:00
Juergen Hoeller
2a268701c4
Introduce optimizeLocations flag for resource location filtering on startup
...
This flag is off by default since it requires jar files with directory entries.
Closes gh-27624
2021-11-10 14:21:48 +01:00
Sam Brannen
1e36518182
Merge branch '5.3.x'
2021-10-23 16:08:43 +02:00
Sam Brannen
995aaa6159
Polishing
2021-10-23 16:08:00 +02:00
Rossen Stoyanchev
22f75d9ea9
Merge branch '5.3.x' into main
2021-10-19 12:35:37 +01:00
Rossen Stoyanchev
05ea991d62
Removing locations logging in ResourceHttpRequestHandler
...
See gh-27575
2021-10-19 12:25:33 +01:00
Sam Brannen
3b531d9494
Merge branch '5.3.x'
2021-10-17 19:34:19 +02:00
Sam Brannen
052ed50f48
Fix copy-and-paste error in Javadoc
2021-10-17 19:33:42 +02:00
Sam Brannen
8135ae6d38
Apply "instanceof pattern matching" in spring-webflux
...
This commit also applies additional clean-up tasks such as the following.
- final fields
- diamond operator (<>) for anonymous inner classes
- multi-catch
This has only been applied to `src/main/java`.
2021-10-17 13:30:05 +02:00
Rossen Stoyanchev
9b9906cfc4
Merge branch '5.3.x' into main
2021-10-14 17:22:29 +01:00
Rossen Stoyanchev
76c9306dda
Adjust logging of resource locations
2021-10-14 17:18:34 +01:00
Rossen Stoyanchev
28a497f3b3
Merge branch '5.3.x' into main
2021-10-13 14:58:07 +01:00
Rossen Stoyanchev
4dac8339ff
Filter non-existing static resource locations
...
Same as a2c52a97ba , on the WebFlux side.
See gh-27538
2021-10-13 14:40:34 +01:00
Rossen Stoyanchev
0436dd04bf
Correctly handle coroutine with ResponseEntity
...
ResponseEntityResultHandler nests correctly, only once for the ResponseEntity,
when there is a Mono adapted from a Kotlin Continuation.
Closes gh-27292
2021-10-13 14:40:34 +01:00
Juergen Hoeller
da457abd5b
Merge branch '5.3.x'
2021-10-12 15:19:40 +02:00
Juergen Hoeller
b53275f2d2
Add efficient existence check to ClassPathResource.isReadable()
...
Includes reduced isReadable() check in PathResourceLookupFunction, aligned with PathResourceResolver.
Closes gh-27538
See gh-21372
2021-10-12 15:13:05 +02:00
Juergen Hoeller
56eefe2a13
Merge branch '5.3.x'
2021-10-08 20:42:54 +02:00
Juergen Hoeller
87aaf5049b
Polishing
2021-10-08 20:41:51 +02:00
Rossen Stoyanchev
ccb080f948
Merge branch '5.3.x' into main
2021-10-07 16:55:35 +01:00
Rossen Stoyanchev
b6111d04a5
Ensure WebClientResponseException for malformed response
...
Closes gh-27262
2021-10-07 16:50:53 +01:00
Ashley Scopes
9bd989f1bb
WebClient tests for socket and response format issues
...
Added test case for malformed response chunk, which is
now failing as expected.
See gh-27262
2021-10-07 16:50:53 +01:00