Get ahead
VMware offers training and certification to turbo-charge your progress.
Learn moreOn behalf of the team and everyone who has contributed, I am pleased to announce a new milestone for the next Spring Framework generation. We have compiled all the upgrade information, new features and deprecations on the Spring Framework 7.0 release notes preview page.
This is another feature-rich milestone for the API Versioning support. There are quite a few refinements around the configuration model and how we ensure that the API Versioning setup is valid. We also now support inserting API Version information in Media Types on the client side. We are receiving lots of good feedback, keep it coming!
You can see the updated documentation in the API Versioning for MVC section.
This is a popular enhancement request coming from the community: providing a non-reactive variant for WebTestClient
.
Developers like the way WebTestClient
can test live servers and mock setups, with a fluent API and nice assertions.
This is now done with the new RestTestClient
; you can bind it to a live server, an MVC @Controller
or the application context.
See the new RestTestClient
documentation section for more.
@HttpServiceClient
The interface client support is expanding with the new @HttpServiceClient
annotation.
Annotated interfaces are excluded from @ImportHttpServices
scans, so there is no overlap with scans for client interfaces when pointed at the same package.
This feature allows for more flexible setups and opens the door for better integration in Spring Boot.
See the interface clients configuration section in the documentation.
PathPattern
matching improvedAs of Spring Framework 7.0, the legacy AntPathMatcher
variant for matching HTTP request mappings is being deprecated.
We started this migration back in 5.0, introducing the PathPattern
option, then making it the default.
Community members reached out and shared that there was one last missing feature that was preventing their upgrade:
the ability to match many path segments at the beginning of the path (think, "/**/pages/index.html"
).
This is now supported, and we described more thoroughly the allowed patterns in the reference documentation.
There are plenty of other changes. As usual, you can check the detailed changelog for more details.
7.0.0-M8 is now available from https://repo.spring.io and Maven Central.