-
Notifications
You must be signed in to change notification settings - Fork 41.6k
Spring Boot 2.7.0 RC1 Release Notes
The spring-boot:run and spring-boot:start goals of the Maven Plugin run your application in a forked processed by default.
It is possible to disable this behavior using the fork attribute of the plugin.
This attribute is now deprecated with no replacement.
ExitCodeGenerators are now ordered based on their Ordered implementation and @Order annotation.
The first non-zero exit code that is generated is used.
Metric tag keys that were in camelCase have been renamed to comply with Micrometer’s recommendation to use all lower-case and a . separator.
The following metrics and tag keys are affected:
| Metric | Old Tag Key | New Tag Key |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
If you need to restore the previous names, define a MeterFilter bean that implements the map(Id) method to modify the tag keys.
Elasticsearch has deprecated its RestHighLevelClient.
In alignment with this, Spring Boot’s auto-configuration for RestHighLevelClient has been deprecated.
Where possible, the auto-configured low-level RestClient should be used instead.
Alternatively, consider manually configuring the new client.
|
Tip
|
Check the configuration changelog for a complete overview of the changes in configuration. |
Auto-configuration for Jackson will now scan your application’s packages for classes annotated with @JsonMixin.
Any class that are found are automatically registered as mixins with the auto-configured ObjectMapper.
As required by the GraphQL HTTP spec, our GraphQL support selects by default the "application/graphql+json" media type for all supported transports.
"application/json" is still supported, if explicitly requested by the client.
Embedded web servers can be configured to use SSL with PEM-encoded certificate and private key files using the properties server.ssl.certificate and server.ssl.certificate-private-key, as well as the optional server.ssl.trust-certificate and server.ssl.trust-certificate-private-key. Management endpoints can be secured using similar management.server.ssl.* properties.
See the documentation for an example.
This is provided as an alternative to configuring SSL with Java KeyStore files.
Spring Boot 2.7.0-M3 moves to new versions of several Spring projects:
-
TBD
Numerous third-party dependencies have also been updated, some of the more noteworthy of which are the following:
-
TBD
Apart from the changes listed above, there have also been lots of minor tweaks and improvements including:
-
Elasticsearch
RestClientBuilderandRestClientbeans are now auto-configured whenelasticsearch-rest-clientis on the classpath. Ifelasticsearch-rest-high-level-clientis on the classpath, aRestHighLevelClientbean will still be auto-configured as before, but note that support forRestHighLevelClientis now deprecated.
-
DatabaseDriver.GAE -
Properties under
spring.security.saml2.relyingparty.registration.{id}.identity-providerhave been moved tospring.security.saml2.relyingparty.registration.{id}.asserting-party. Using the old property names result in log messages on WARN level on startup.