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 our first release candidate for Spring Framework 7.0. There is another release candidate scheduled by the end of the month, before our GA version in November. We have compiled all the upgrade information, new features and deprecations on the Spring Framework 7.0 release notes preview page.
The new Resiliency feature got a few more refinements in this release.
You can now match against exception causes in @Retryable or RetryPolicy, and even include/exclude specific exception types.
We also added a new @ConcurrencyLimit programmatic variant for more flexible setups; the @ConcurrencyLimit annotation now supports placeholder resolution for its attributes.
In the previous milestone, we introduced context propagation support for Kotlin Coroutines.
This new version refines the ContextPropagationElement operator to be more idiomatic for Kotlin users and handles kotlinx-coroutines-reactor as an optional dependency.
ContextPropagationElement is now automatically applied for CoroutinesUtils#invokeSuspendingFunction when no CoroutineContext is provided.
This means that context propagation will be supported automatically in your application code where Spring handles coroutines for you.
You can check the relevant documentation section for more on Context Propagation in Kotlin Coroutines.
Controller methods can now get injected with the version being used:
@RestController
class UserController {
@GetMapping("/users/{id}")
public User findUser(String id, Version apiVersion) {
//...
}
}
This new release brings additional baseline upgrades for the 7.0 generation, namely:
There are plenty of other changes. As usual, you can check the detailed changelog for more details. 7.0.0-RC1 is now available from https://repo.404ofchina.website and Maven Central.