-
Notifications
You must be signed in to change notification settings - Fork 41.6k
Spring Boot 3.5.0 M2 Release Notes
|
Tip
|
Check the configuration changelog for a complete overview of the changes in configuration. |
When using the spring-boot-configuration-processor, the META-INF/additional-spring-configuration-metadata.json file can now be used to ignore properties:
{
"ignored": {
"properties": [
{
"name": "my.age"
}
]
}
}This removes my.age from the generated spring-configuration-metadata.json file.
Additionally, the information that my.age has been ignored is also recorded in the generated spring-configuration-metadata.json file.
While it was already possible to load single properties from environment variables, it’s now possible to load multiple properties from a single environment variable.
For example, the multi-line environment variable MY_CONFIGURATION with this content:
my.var1=value1
my.var2=value2can now be imported using the env: prefix:
spring.config.import=env:MY_CONFIGURATIONAfter this, my.var1 and my.var2 are available in the Environment.
This feature supports properties and yaml format. For more details, please see the documentation.
Spring Boot 3.5.0-M2 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:
-
If
io.micrometer:micrometer-java21is on the classpath, aVirtualThreadsMetricsbean is now auto-configured. -
The
java.homesystem property is no longer used when running in native image. -
The new property
spring.jooq.configcan be used to specify an external jOOQ settings.xml file or resource. -
New factory methods have been added to
SslManagerBundleto create aSslManagerBundlefrom aTrustManagerFactoryor from aTrustManager. -
The
logging.structured.json.customizerproperties now accepts more than one customizer. -
A new
spring.r2dbc.pool.acquire-retry`property has been added. -
@ConditionalOnBeannow supports generic@Beanreturn types -
@ConditionalOnPropertyand@ConditionalOnBooleanPropertyare now@Repeatable
-
Support for SignalFX has been deprecated, following the deprecation in Micrometer.