Make SourceHttpMessageConverter
optional
#29535
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
As a follow-up to #29277, and since the inclusion of JAXB support is triggered by the classpath presence of a JAXB implementation, it makes sense to make
SourceHttpMessageConverter
, currently configured unconditionally, optional. That makes a big difference on native (1M
of RSS reduction with current typical Spring Boot 3 arrangement,3.4M
when other usages of XML will be not be reachable by default anymore like in Tomcat or Logback) and will avoid to configure XML support by default on JVM as well without an explicit signal.As a consequence, Spring applications using
DOMSource
,SAXSource
,StAXSource
,StreamSource
orSource
will need to configureSourceHttpMessageConverter
explicitly inRestTemplate
or Spring MVC. This will be properly documented on upgrade notes.The text was updated successfully, but these errors were encountered: