-
Notifications
You must be signed in to change notification settings - Fork 41.6k
Spring Boot 3.5.0 M3 Release Notes
The nativeTest profile has been harmonized with native to make it friendly for multi-modules project.
Native test execution will not occur unless the Spring Boot and Native Build tools plugin are defined in the project.
This is already the case for the native profile.
See the documentation for more details.
The spring.groovy.template.configuration. properties have been deprecated in favor of new and existing spring.groovy.template. properties. See the configuration changelog for further details.
|
Tip
|
Check the configuration changelog for a complete overview of the changes in configuration. |
Containers using the lldap/lldap image can now be used with Docker Compose and Testcontainers.
Testcontainers supports this image with LLdapContainer.
Spring Boot now supports the OTEL_RESOURCE_ATTRIBUTES and OTEL_SERVICE_NAME environment variables.
Resource attributes configured through the configuration property taking precedence over those from the environment variables.
Additionally, support for the service.namespace resource attribute has been added.
The value of this attribute is read from the spring.application.group configuration property.
Support for the service.group resource attribute has been deprecated and will be removed in a future release.
It’s now possible to define a custom BatchSpanProcessor bean.
The span export can now be configured with newly added properties under the management.tracing.opentelemetry.export prefix.
The JobParametersConverter used by Spring Batch can now be customised by defining a bean of that type.
When no such bean is defined the DefaultJobParametersConverter will be used as before.
The new spring.batch.jdbc.validate-transaction-state property can be used to control whether transaction state is validated.
The default behavior is unchanged and transaction state will be validated.
Spring Boot 3.5.0-M3 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:
Apart from the changes listed above, there have also been lots of minor tweaks and improvements including:
-
Logging for Cloud Native Buildpacks integration has been improved.
-
The new property
spring.data.mongodb.protocolhas been added to allow the MongoDB protocol to be customized. -
Logback and Log4j2 now respect the console charset.
-
The transport-specific configuration properties for GraphQL have been reorganized.
spring.graphql.pathis nowspring.graphql.http.pathandspring.graphql.sse.timeoutis replaced byspring.graphql.http.sse.timeout. -
Support for Zipkin’s
URLConnectionSenderhas been removed. -
Removed the default value of
OtlpMetricsProperties.url. However, this should lead to no visible changes as Micrometer then provides the default value. -
The auto-configured
JdbcTemplatecan be further customized using additional configuration properties forignoreWarnings,skipResultsProcess,skipUndeclaredResults, andresultsMapCaseInsensitive. -
In most cases, a
DataSourcecan now be auto-configured withoutspring-jdbcon the classpath.spring-jdbcis still required to use an embedded database without a connection pool. -
The property
server.tomcat.use-aprnow defaults tonever. If you want to use Tomcat’s APR, set the property towhen-availableoralways. -
A
PollerMetadataCustomizerhas been added to customize Spring Integration’sPollerMetadata. -
Garbage collector information has been added to the actuator process info.
-
Removed the readonly flag from the
BuildImageMaven mojo to remove Maven warnings. -
The
SameSiteattribute can be omitted from the session cookie by settingserver.servlet.session.cookie.same-siteorserver.reactive.session.cookie.same-sitetoomitted.
-
org.springframework.boot.autoconfigure.security.oauth2.client.ClientsConfiguredConditionin favor of@org.springframework.boot.autoconfigure.security.oauth2.client.ConditionalOnOAuth2ClientRegistrationProperties -
org.springframework.boot.autoconfigure.security.oauth2.resource.IssuerUriConditionin favor of@org.springframework.boot.autoconfigure.security.oauth2.resource.ConditionalOnIssuerLocationJwtDecoder -
org.springframework.boot.autoconfigure.security.oauth2.resource.KeyValueConditionin favor of@org.springframework.boot.autoconfigure.security.oauth2.resource.ConditionalOnPublicKeyJwtDecoder -
org.springframework.boot.devtools.autoconfigure.OnEnabledDevToolsConditionin favor of@org.springframework.boot.devtools.autoconfigure.ConditionalOnEnabledDevTools