Commit b59dca9
committed
Align HttpMessageConverters builder with WebFlux codecs variants
As of #33894, we introduced a new `HttpMessageConverters` API.
While this achieved our goal of focusing converters classpath detection
in a single place and avoiding waste, a single `HttpMessageConverters`
instance for both client and server added more complexity for developers.
This commit aligns the API here with the WebFlux `CodecsConfigurer` to
opt for a client/server flavor as the first step in the builder.
While this make the sharing of converter instances between server and
client impossible, this allows for a simpler API and separates concerns.
Closes gh-351871 parent ddaf13b commit b59dca9
File tree
17 files changed
+343
-516
lines changed- framework-docs/src/main
- java/org/springframework/docs/web/webmvc/mvcconfig/mvcconfigmessageconverters
- kotlin/org/springframework/docs/web/webmvc/mvcconfig/mvcconfigmessageconverters
- spring-webmvc/src
- main/java/org/springframework/web/servlet/config/annotation
- test/java/org/springframework/web/servlet/config/annotation
- spring-web/src
- main/java/org/springframework
- http/converter
- support
- web/client
- test/java/org/springframework
- http/converter
- web/client
17 files changed
+343
-516
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments