You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add additional constructor and a protected postProcessConverters method
to make it easier to manipulate the final converter list that will
be used.
Fixesgh-1482
Copy file name to clipboardExpand all lines: spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/HttpMessageConverters.java
+44-16
Original file line number
Diff line number
Diff line change
@@ -69,26 +69,54 @@ public HttpMessageConverters(HttpMessageConverter<?>... additionalConverters) {
69
69
* converters.
70
70
* @param additionalConverters additional converters to be added. Items are added just
71
71
* before any default converter of the same type (or at the front of the list if no
72
-
* default converter is found) The {@link #getConverters()} methods can be used for
73
-
* further converter manipulation.
72
+
* default converter is found) The {@link #postProcessConverters(List)} method can be
Copy file name to clipboardExpand all lines: spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/HttpMessageConvertersTests.java
+27
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@
18
18
19
19
importjava.util.ArrayList;
20
20
importjava.util.Arrays;
21
+
importjava.util.Iterator;
21
22
importjava.util.List;
22
23
23
24
importorg.junit.Rule;
@@ -97,4 +98,30 @@ public void addNewConverters() {
0 commit comments