Spring Framework 7.0.0-M8 available now

On 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.

API Versioning updates

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.

RestTestClient

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 improved

As 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.

And much more!

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.

Project Page | GitHub | Issues | Documentation

THE END
喜欢就支持一下吧
点赞13 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容