Brian Clozel
61d893257e
Rewrite "performance" test to JMH benchmarks
...
This commit rewrites the remaining "fastEnough" performance tests into
proper JMH benchmarks.
See gh-24830
2020-09-25 13:43:38 +02:00
Juergen Hoeller
6c631e3d5c
Merge branch '5.2.x'
...
# Conflicts:
# spring-messaging/src/main/java/org/springframework/messaging/converter/MappingJackson2MessageConverter.java
2020-09-25 11:36:18 +02:00
Juergen Hoeller
6e4fcb69f0
Polishing
2020-09-25 11:26:01 +02:00
Rossen Stoyanchev
1061bcdba2
Set sameSite in ClientHttpResponse implementations
...
Closes gh-25785
2020-09-22 07:36:29 +01:00
Juergen Hoeller
bbe74635eb
Merge branch '5.2.x'
2020-09-18 18:16:33 +02:00
Juergen Hoeller
c1617d3c52
Polishing
2020-09-18 18:15:36 +02:00
Juergen Hoeller
d5fed34642
Merge branch '5.2.x'
2020-09-15 10:09:18 +02:00
Juergen Hoeller
f010368a66
Polishing
2020-09-15 10:08:01 +02:00
Juergen Hoeller
f4bdc0284e
Polishing
2020-09-15 09:56:53 +02:00
Juergen Hoeller
801c8ed8ac
Revise type resolution for alignment with AbstractJsonHttpMessageConverter
...
See gh-21188
2020-09-15 09:41:14 +02:00
Andreas Ahlenstorf
cd6085a310
Add kotlinx.serialization JSON support to Spring MVC
...
Closes gh-21188
Co-authored-by: Sebastien Deleuze <sdeleuze@vmware.com>
2020-09-14 23:25:16 +02:00
Juergen Hoeller
b8c12a3aa1
Upgrade to Undertow 2.2 (and R2DBC Arabba-SR7)
2020-09-14 22:59:46 +02:00
Juergen Hoeller
07b3e92bae
Merge branch '5.2.x'
...
# Conflicts:
# build.gradle
# src/docs/asciidoc/core/core-aop-api.adoc
2020-09-14 22:22:02 +02:00
Juergen Hoeller
3c84863271
Polishing
2020-09-14 22:18:30 +02:00
Juergen Hoeller
c2f6a98c90
Lenient handling of empty Content-Disposition filename
...
Closes gh-25769
2020-09-14 22:16:12 +02:00
Rossen Stoyanchev
b50ad1b9aa
AbstractServerHttpResponse skips commit actions on 2nd pass
...
Closes gh-25753
2020-09-13 21:21:07 +01:00
Brian Clozel
b2a0978c12
Prepare for Sinks API updates in Reactor
...
See reactor/reactor-core#2374
All usages of this API are in tests, which are not checking overflow or
concurrent emissions - so a simple replacement with `try***` equivalents
is fine.
2020-09-11 16:34:31 +02:00
Arjen Poutsma
3bd96a665f
Merge branch '5.2.x' into master
2020-09-10 11:34:44 +02:00
Arjen Poutsma
07d2c08f48
Do not tokenize Forward header value
...
This commit remove the tokenization previously used in
UriComponentsBuilder#adaptFromForwardedHeaders, in order to support
Forwarded headers that have multiple, comma-separated 'for' elements.
Closes gh-25737
2020-09-09 16:31:24 +02:00
Juergen Hoeller
7dbb40ffa0
Merge branch '5.2.x'
2020-09-08 12:24:18 +02:00
Juergen Hoeller
ae1d15c8f4
Declare protected getCharset method as non-static
...
See gh-25509
2020-09-08 12:22:25 +02:00
Rossen Stoyanchev
dd011c991c
Merge branch '5.2.x' into master
2020-09-07 21:41:30 +01:00
Rossen Stoyanchev
b6ff12d2f5
Expose protected method in AbstractJackson2HttpMessageConverter
...
Closes gh-25509
2020-09-07 21:27:52 +01:00
Rossen Stoyanchev
b1d84067cd
UriComponentsBuilder Javadoc update
...
Closes gh-25604
2020-09-07 21:27:52 +01:00
Rossen Stoyanchev
899761f0a8
Avoid unnecessary parsing of path params
...
See gh-25690
2020-09-07 21:27:52 +01:00
Rossen Stoyanchev
f88759c3c9
Shared read-only instances of UrlPathHelper
...
UrlPathHelper is often created and used without customizations or with
the same customizations. This commit introduces re-usable, instances.
Effectively a backport of commit 23233c.
See gh-25690
2020-09-07 21:27:52 +01:00
Arjen Poutsma
d550d344d5
Respect context path in WebMvc.fn & WebFlux.fn
...
This commit makes several changes in both WebMvc.fn as well as
WebFlux.fn.
- ServerRequest now exposes a RequestPath through requestPath(), and
pathContainer() has been deprecated.
- The PathPredicate and PathResourceLookupFunction now respects this
RequestPath's pathInApplication() in their path-related
functionality.
- When nesting, the PathPredicate now appends the matched part of the
path to the current context path, instead of removing the matched
part (which was done previously). This has the same result: the
matched part is gone, but now the full path stays the same.
Closes gh-25270
2020-09-03 15:10:56 +02:00
Juergen Hoeller
689adb4bd0
Merge branch '5.2.x'
...
# Conflicts:
# build.gradle
2020-09-01 23:46:11 +02:00
Juergen Hoeller
141470ff58
Explicit nullability declarations for getTarget() implementations
2020-09-01 23:26:22 +02:00
Juergen Hoeller
e20bff9c64
Consistent data class constructor resolution with clear error message
...
MVC data class processor constructs target instance even in case of binding failure, as long as the corresponding method parameter is not marked as optional.
Closes gh-24372
2020-09-01 19:10:32 +02:00
Juergen Hoeller
e365e0221a
Merge branch '5.2.x'
...
# Conflicts:
# spring-web/src/main/java/org/springframework/web/util/UrlPathHelper.java
2020-09-01 10:30:59 +02:00
Juergen Hoeller
d62202f464
Polishing
2020-09-01 10:27:36 +02:00
Juergen Hoeller
bcdc2503fa
Avoid repeated calls to getPathWithinApplication from getLookupPathForRequest
...
Closes gh-25669
2020-09-01 10:27:04 +02:00
Johnny Lim
603d7e93b9
Copy httpHandlerDecorator in copy constructor for WebHttpHandlerBuilder
...
This commit also polishes its Javadoc and fixes its test along the way.
2020-09-01 10:09:34 +02:00
Juergen Hoeller
c4f4fbc003
Polishing
2020-08-28 20:14:24 +02:00
Juergen Hoeller
00c5dbf11a
Merge branch '5.2.x'
...
# Conflicts:
# spring-beans/src/main/java/org/springframework/beans/CachedIntrospectionResults.java
2020-08-28 20:01:17 +02:00
Juergen Hoeller
6d9d4157ef
Specifically detect Joda-Time 2.x
...
Closes gh-25655
2020-08-28 19:57:51 +02:00
Juergen Hoeller
d37eaa5941
Introduce DataClassRowMapper with record-style constructor binding support
...
Closes gh-24695
2020-08-28 18:52:35 +02:00
Juergen Hoeller
cf2e0c7959
Selected use of ArrayList instead of LinkedList in common places
...
See gh-25652
2020-08-27 14:14:44 +02:00
Rossen Stoyanchev
21d25b23d9
WebFlux extension point to decorate the HttpHandler
...
Closes gh-25633
2020-08-27 10:50:30 +01:00
Juergen Hoeller
874574513c
Replace remaining usage of LinkedList with ArrayList/ArrayDeque
...
Closes gh-25650
2020-08-26 18:32:08 +02:00
Riley Park
6884a3ac56
Fix appendix typos in ContentDisposition
2020-08-26 11:33:27 +01:00
Juergen Hoeller
ff11467a0c
Avoid resizing of fixed-size HashMap/LinkedHashMap variants
...
Closes gh-25349
2020-08-25 19:26:18 +02:00
Juergen Hoeller
7324140d20
Merge branch '5.2.x'
2020-08-25 16:21:00 +02:00
Juergen Hoeller
04df9b8f49
Efficient checks for empty strings and single character matches
...
Closes gh-25552
Closes gh-25553
2020-08-25 16:17:12 +02:00
Rossen Stoyanchev
7adeb461e0
WebClient exposes API for access to native request
...
Closes gh-25115, gh-25493
2020-08-24 07:58:35 +01:00
Rossen Stoyanchev
a7f71f4d9b
Support filename hint for client side too
...
Closes gh-25516
2020-08-14 15:18:39 +01:00
Sam Brannen
4d3dd9b9f6
Clean up warnings in Gradle build
2020-08-11 17:20:27 +02:00
Sam Brannen
5de549d7d4
Update contentType property via MockHttpServletResponse::setCharacterEncoding()
...
Prior to this commit, MockHttpServletResponse's setCharacterEncoding()
method did not update the contentType property, which violates the
Servlet 2.4 Javadoc for getContentType() and setCharacterEncoding().
This commit addresses this issue; however, some existing tests may have
to be updated as a result of this change.
For example, note how some of the tests in this commit have been
refactored to use MediaType##isCompatibleWith() instead of asserting
exact matches for the value returned by MockHttpServletResponse's
getContentType() method.
Closes gh-25536
2020-08-10 16:05:18 +02:00
Сергей Цыпанов
c2122551c8
Improve UriComponents.sanitizeSource()
2020-08-10 14:47:20 +02:00