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
14f24f43d7
Polishing
2021-12-03 22:36:31 +01:00
Juergen Hoeller
d7e0eed8d2
Clarify getBeanProvider(ResolvableType) semantics for unresolved generics
...
Closes gh-27727
2021-12-03 22:33:50 +01:00
Juergen Hoeller
7c834d98c2
Upgrade to ASM master (including early support for Java 19 bytecode)
...
Closes gh-27740
2021-12-03 22:32:26 +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
Stephane Nicoll
110e0f7f2b
Add support for Instant in @DateTimeFormat
...
Closes gh-19846
2021-12-03 16:17:52 +01:00
Arjen Poutsma
0a41da9ec9
Merge branch '5.3.x'
2021-12-03 12:52:30 +01:00
Arjen Poutsma
2f557d9583
Merge pull request #25358 from ivd-git:router-function-handler-not-found-to-exception-pr
...
* gh-25358:
Polish "Throw 404 ResponseStatusException when no routes found"
Throw 404 ResponseStatusException when no routes found
2021-12-03 12:51:44 +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
Stephane Nicoll
8144f8666e
Merge pull request #1215 from kazuki43zoo
...
* pr/1215:
Polish "Add support for YearMonth and MonthDay in @DateTimeFormat"
Add support for YearMonth and MonthDay in @DateTimeFormat
Closes gh-1215
2021-12-03 11:21:29 +01:00
Stephane Nicoll
a57ea39707
Polish "Add support for YearMonth and MonthDay in @DateTimeFormat"
...
See gh-1215
2021-12-03 11:20:04 +01:00
Kazuki Shimizu
65eceafeee
Add support for YearMonth and MonthDay in @DateTimeFormat
...
See gh-1215
2021-12-03 10:59:38 +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
ba568ff79c
Merge branch '5.3.x'
2021-12-02 16:12:35 +01: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
Stephane Nicoll
1b4fa0370c
Merge pull request #23927 from sokomishalov
...
* pr/23927:
Polish "Add Kotlin extensions for Cache and CacheManager"
Add Kotlin extensions for Cache and CacheManager
Closes gh-23927
2021-12-02 14:51:41 +01:00
Stephane Nicoll
65dc2afe9d
Polish "Add Kotlin extensions for Cache and CacheManager"
...
See gh-23927
2021-12-02 14:51:29 +01:00
sokomishalov
5ec1e20242
Add Kotlin extensions for Cache and CacheManager
...
See gh-23927
2021-12-02 14:51:29 +01:00
Brian Clozel
24cb1def7d
Polish
...
Closes gh-27754
2021-12-02 14:23:16 +01:00
Rossen Stoyanchev
2d2db530b1
Merge branch '5.3.x' into main
2021-12-02 12:35:48 +00:00
Rossen Stoyanchev
6582787678
Apply resources after application HttpClient mapper
...
Closes gh-27749
2021-12-02 12:28:36 +00:00
Rossen Stoyanchev
8b89128c7b
Update createException example for WebClient
...
Closes gh-27645
2021-12-02 11:53:43 +00:00
Arjen Poutsma
9cc690a9bb
Merge pull request #27356 from ydh6226:patch-1
...
* gh-27356:
Use HttpHeaders.ALLOW instead of String constant
2021-12-02 12:32:55 +01:00
ydh6226
a0ba808217
Use HttpHeaders.ALLOW instead of String constant
...
This commit changes "Allow" strings into HttpHeaders.ALLOW.
See gh-27356
2021-12-02 12:28:36 +01:00
Stephane Nicoll
e0979d0e74
Merge pull request #27239 from Frederick888
...
* pr/27239:
Update copyright year of changed files
Replace XMLReaderFactory with SAXParserFactory
Closes gh-27239
2021-12-02 11:33:50 +01:00
Stephane Nicoll
e986ff8d07
Update copyright year of changed files
...
See gh-27239
2021-12-02 11:32:46 +01:00
Frederick Zhang
baed0785fd
Replace XMLReaderFactory with SAXParserFactory
...
XMLReaderFactory has been marked as deprecated and without additional
configuration, and it's slower than SAXParserFactory.
Previously `XMLReaderFactory.createXMLReader()` is called upon every
request. This is an anti-pattern as mentioned in [1] and it can be very
slow since it loads the jar service file unless a parser has been
pre-assigned [2] (e.g. by setting org.xml.sax.driver).
SAXParserFactory uses a FactoryFinder [3] instead, which takes advantage
of a thread-local cache provided by ServiceLoader. Developers can still
pre-assign a factory by setting javax.xml.parsers.SAXParserFactory to
make it faster.
[1] https://bugs.openjdk.java.net/browse/JDK-6925410
[2] c8add223a1/src/java.xml/share/classes/org/xml/sax/helpers/XMLReaderFactory.java (L144-L148)
[3] 66c653c561/src/java.xml/share/classes/javax/xml/parsers/SAXParserFactory.java (L181-L185)
See gh-27239
2021-12-02 11:32:46 +01:00
liuzhifei
32359c52b4
Remove transitive dependency on Java EE 8 JAX-B
...
Closes gh-27754
2021-12-02 09:37:48 +00:00
Stephane Nicoll
5589e6ceed
Merge pull request #24599 from chenqimiao
...
* pr/24599:
Polish "Add support for explicit generic type in PayloadApplicationEvent"
Add support for explicit generic type in PayloadApplicationEvent
Closes gh-24599
2021-12-02 10:23:11 +01:00
Stephane Nicoll
792b366bda
Polish "Add support for explicit generic type in PayloadApplicationEvent"
...
See gh-24599
2021-12-02 10:20:08 +01:00
陈其苗
6283456ef2
Add support for explicit generic type in PayloadApplicationEvent
...
See gh-24599
2021-12-02 09:38:48 +01: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
445f25c466
Use HttpMethod::valueOf in HttpMethod::resolve
...
This commit makes sure that HttpMethod::resolve uses HttpMethod::valueOf
and returns an HttpMethod for non-standard methods.
See gh-27697
2021-11-30 14:59:42 +01:00
Stephane Nicoll
9c1a0d32be
Merge pull request #23813 from izeye
...
* pr/23813:
Polish contribution
Polish AbstractResource
Closes gh-23813
2021-11-30 14:33:53 +01:00
Stephane Nicoll
46cb5ab135
Polish contribution
...
See gh-23813
2021-11-30 14:29:05 +01:00
Johnny Lim
5c4cde7853
Polish AbstractResource
...
See gh-23813
2021-11-30 14:25:40 +01:00
Arjen Poutsma
da3b4cb65d
Polish
2021-11-30 14:09:33 +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
6e335e3a9f
Refactor HTTP Method from Enum to Class
...
This commit refactors HttpMethod from a Java enum into a class. The
underlying reason being that HTTP methods are not enumerable, but
instead an open range and not limited to the predefined values in the
specifications.
Closes 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
Sam Brannen
a0d54105e9
Use new features in JUnit Jupiter 5.8.2
...
See gh-27744
2021-11-30 13:00:28 +01:00
Sam Brannen
44950bb862
Merge branch '5.3.x'
2021-11-30 12:27:41 +01:00
Sam Brannen
40d2058b97
Upgrade to JUnit 5.8.2
...
Closes gh-27744
2021-11-30 12:22:31 +01:00
Rossen Stoyanchev
1ebe62f646
Merge branch '5.3.x' into main
2021-11-29 17:38:23 +00:00
Rossen Stoyanchev
0d478ca8dd
Add link to WebSocket scope from the Spring Core section
...
Closes gh-25172
2021-11-29 17:37:37 +00:00