-
Notifications
You must be signed in to change notification settings - Fork 40.6k
Spring Boot 3.4.0 M1 Release Notes
Previously, when a @ConfigurationProperties
class annotated with @Validated
was being validated using a Bean Validation implementation such as Hibernate Validator, validation of nested properties would be performed as they were bound, irrespective of the use of @Valid
.
In Spring Boot 3.4, validation now follows the behavior of the Bean Validation specification.
Validation is performed from the @ConfigurationProperties
-annoated class and only cascades down to nested properties where the corresponding field is annotated with @Valid
.
When upgrading, inspect your @ConfigurationProperties
classes with Bean Validation constraints.
Add @Valid
as necessary where you want the validation to cascade down to nested properties.
HtmlUnit has been upgraded to 4.2.
With this upgrade comes a change in dependency coordinates from net.sourceforge.htmlunit:htmlunit
to org.htmlunit:htmlunit
and a change in package names from com.gargoylesoftware.htmlunit.
to org.htmlunit.
. When upgrading, update your build configuration and imports accordingly.
Selenium HtmlUnit has been updated to 4.20.
With this upgrade comes a change in dependency coordinates from org.seleniumhq.selenium:htmlunit-driver
to org.seleniumhq.selenium:htmlunit3-driver
. When upgrading, update your build configuration accordingly.
Tip
|
Check the configuration changelog for a complete overview of the changes in configuration. |
Spring Boot 3.4.0-M1 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:
-
The new properties
spring.docker.compose.start.arguments
andspring.docker.compose.stop.arguments
can be used to specify additional command line arguments passed to Docker Compose -
The new properties
management.otlp.tracing.export.enabled
,management.wavefront.tracing.export.enabled
andmanagement.zipkin.tracing.export.enabled
can be used to enable or disable trace exporting more finely grained -
You can now use a
Customizer<Liquibase>
bean to customize Liquibase before it is being used -
The properties used to create a JCache
CacheManager
can now be customized by defining aJCachePropertiesCustomizer
bean. -
Spring Boot’s Testcontainers integration now supports
org.testcontainers.kafka.KafkaContainer
. -
The
RequestToViewNameTranslator
used by Spring MVC can now be customized by defining a bean namedviewNameTranslator
. -
Lettuce’s
ClientOptions
can now be customized using aLettuceClientOptionsBuilderCustomizer
bean. For broader configuration of the wholeLettuceClientConfiguration
, continue to useLettuceClientConfigurationBuilderCustomizer
. -
Auto-configuration for OpenTelemetry’s
OtlpHttpLogRecordExporter
andSdkLoggerProvider
using new properties undermanagement.otlp.logs
.