-
Notifications
You must be signed in to change notification settings - Fork 40.6k
Spring Boot 2.7.0 M2 Release Notes
As OkHttp 3 is no longer being maintained, Spring Boot 2.7 has upgraded to OkHTTP 4.
As part of this upgrade, the property used to control OkHttp’s version has changed from okhttp3.version
to okhttp.version
.
OkHttp 4 is intended to be backwards compatible with OkHttp 3.
If this is not the case in your application or wish to continue using OkHttp 3 for another reason, configure the okttp.version
property in your build.
Separate dependency management for netty-tcnative
has been removed in favor of the dependency management provided by Netty’s bom.
This ensures that the version of netty-tcnative
will align with the version that Netty uses by default.
As a result of this change, the netty-tcnative.version
property can no longer be used to override the version of netty-tcnative
.
The version can still be overridden by providing your own dependency management but it is recommended that it remains aligned with Netty’s default version.
Tip
|
Check the configuration changelog for a complete overview of the changes in configuration. |
If you are using opaque token introspection in your OAuth2 resource server, the auto-configured introspector no longer requires a dependency on com.nimbusds:oauth2-oidc-sdk
.
Depending on other usages of the SDK, you may be able to remove the dependency from your application.
If you have created your own auto-configurations, you should move the registration from spring.factories
to the new place under META-INF/spring-boot/org.springframework.boot.autoconfigure.AutoConfiguration
. Each line contains the fully qualified name of the auto-configuration. See the included auto-configurations for an example.
The new @AutoConfiguration
annotation can be used to annotate your auto-configurations.
If you have created your own test-slices, you should move the registration from spring.factories
to the new place under META-INF/spring-boot/<name of your test slice annotation>
. The format is the same as the new file described in the "Auto-configuration location" section, see above.
Support for specifying a username for authenticating to Sentinel(s) has been added using the spring.redis.sentinel.username
property.
Spring Boot 2.7.0-M2 moves to new versions of several Spring projects:
*
Numerous third-party dependencies have also been updated, some of the more noteworthy of which are the following:
-
OkHTTP 4.9