This commit moves mime-mapping.properties in the module that actually
uses it, rather than in the top-level spring-boot module.
See gh-48138
Signed-off-by: Stefan Würsten <stefan@wuersten.ch>
Initialize StringBuilder with the expected capacity (this.blank.length())
to avoid unnecessary resizing and array copying during string construction.
The blank field already contains the exact length needed for the formatted
output, making it an ideal initial capacity. This improves performance for
correlation ID formatting, which is frequently called during logging
operations.
See gh-48125
Signed-off-by: gobeomjun <alap_u@naver.com>
Change 'suppler' to 'supplier' in the `@param` documentation
for the throwIfPortBindingException method.
See gh-48124
Signed-off-by: gobeomjun <alap_u@naver.com>
When validating exclusions, prefer the selector's beanClassLoader for
ClassUtils.isPresent checks and fall back to the selector class loader
if the beanClassLoader is not set.
This makes presence checks consistent with the classloader context used
for loading auto-configuration candidates.
See gh-48129
Signed-off-by: linw-bai <107357009+linw-bai@users.noreply.github.com>
The two main changes are:
- A setter is no longer required when binding from a
comma-separated list as long as the target list is mutable. The
binder clears the list and then re-populates it.
- A setter is now required for arrays, previously the values
coming from configuration properties where merged into an existing
array. Now, the array is replaced.
Closes gh-43138
Update `DockerApi` and `Builder` to support export of images with a
specified platform. This prevents 'NotFound: content digest sha256:'
errors when building an amd64 image on an arm64 machine.
Fixes gh-46665
The issue had already been fixed in 4.0 as part of the nullability
work. As such, this commit doesn't fix anything. It does, however,
merge forward a test and makes some stylistic changes to the code so
that it's aligned with the same code in 3.5.x and 3.4.x
* pr/47980:
Polish "Add since to deprecations in config metadata JSON files"
Add since to deprecations in config metadata JSON files
Add since attribute to uses of DeprecatedConfigurationProperty
Closes gh-47980
Add the `since` field to all deprecated properties in all
additional-spring-configuration-metadata.json files in the project.
Add to the CheckAdditionalSpringConfigurationMetadata build task to
ensure that all deprecated properties have a non-empty `since` field.
See gh-47980
Signed-off-by: Scott Frederick <scottyfred@gmail.com>
Add an architecture rule to ensure that all usages of
`@DeprecatedConfigurationProperty` in the Spring Boot codebase include
the `since` attribute.
Add the `since` attribute to the few places where it was not already
included.
See gh-47980
Signed-off-by: Scott Frederick <scottyfred@gmail.com>