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
Those undocumented flags were introduced for Spring Native experimental project needs but:
With Java 17 baseline, XML mashalling/unmarshalling support now requires an additional dependency like org.glassfish.jaxb:jaxb-runtime so the regular classpath check should now work as expected.
Removing SpEL support from the runtime path has a limited impact, and the right why to provide an efficient optimization should be to perform SpEL evaluation via Ahead Of Time transformation (not yet supported).
As a consequence, we are removing those flags from Spring Framework 6.
The text was updated successfully, but these errors were encountered:
As a follow-up to spring-projectsgh-29277, and since the JAXB support is now
triggered by the classpath presence of a JAXB implementation,
it makes sense to make SourceHttpMessageConverter, previously
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 are not reachable).
It also brings more consistency between Spring MVC
and Spring WebFlux, and means that XML support for
Spring web applications now needs to be enabled explicitly.
As a consequence, Spring web applications using
javax.xml.transform.Source now needs to configure
SourceHttpMessageConverter explicitly in RestTemplate or
Spring MVC.
Closesspring-projectsgh-29535
Those undocumented flags were introduced for Spring Native experimental project needs but:
org.glassfish.jaxb:jaxb-runtime
so the regular classpath check should now work as expected.As a consequence, we are removing those flags from Spring Framework 6.
The text was updated successfully, but these errors were encountered: