Skip to content

Spring Boot 2.7.0 RC1 Release Notes

Andy Wilkinson edited this page Apr 12, 2022 · 16 revisions

Spring Boot 2.7.0 RC1 Release Notes

For changes in earlier milestones, please refer to:

Upgrading from Spring Boot 2.6

Running Your Application in the Maven Process

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.

Ordered Exit Code Generators

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 Renamed

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

application.ready.time

main-application-class

main.application.class

application.started.time

main-application-class

main.application.class

cache.*

cacheManager

cache.manager

http.client.requests

clientName

client.name

If you need to restore the previous names, define a MeterFilter bean that implements the map(Id) method to modify the tag keys.

Deprecations from Spring Boot 2.5

Minimum Requirements Changes

None.

New and Noteworthy

Tip
Check the configuration changelog for a complete overview of the changes in configuration.

Simplified Registration of Jackson Mixins

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.

New default GraphQL media type

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.

Dependency Upgrades

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

Miscellaneous

Apart from the changes listed above, there have also been lots of minor tweaks and improvements including:

  • Elasticsearch RestClientBuilder and RestClient beans are now auto-configured when elasticsearch-rest-client is on the classpath. If elasticsearch-rest-high-level-client is on the classpath, a RestHighLevelClient bean will also be auto-configured.

Deprecations in Spring Boot 2.7

  • TBD

Clone this wiki locally