Commit Graph

27175 Commits

Author SHA1 Message Date
Phillip Webb 3ddfd62f16 Prefer file resolution when loading SSL content
Update `SslAutoConfiguration` so that the used resource loader prefers
file based resolution when paths are specified without a prefix. This
restores the behavior found in Spring Boot 3.3.

The `ApplicationResourceLoader` has been updated with a new `get` method
that accepts a `preferFileResolution` parameter. Unfortunately, we can't
directly influence the resource returned by the delegate
`ResourceLoader` since we can't override `getResourceByPath(...)`.
Instead we check if the returned type was likely to have been created
by a call to that method. If so, we change it to a `FileSystemResource`.

This approach should hopefully work with `DefaultResourceLoader` and
subclasses.

Fixes gh-43274
2024-12-03 15:00:15 -08:00
Phillip Webb 7a4e071709 Polish 2024-12-03 14:45:25 -08:00
Phillip Webb 3e37a50b1e Fix actuator access documentation to use 'none' rather than 'disabled'
Closes gh-43351
2024-12-03 12:01:07 -08:00
Phillip Webb 91778e9f96 Merge branch '3.3.x'
Closes gh-43359
2024-12-02 19:05:21 -08:00
Phillip Webb b340c855c0 Prevent H2 console from causing early DataSource initialization
Update `H2ConsoleAutoConfiguration` so that DataSource connection
logging occurs outside of the `ServletRegistrationBean`.

Fixes gh-43337
2024-12-02 19:05:16 -08:00
Phillip Webb dd64b0648f Merge branch '3.3.x'
Closes gh-43356
2024-12-02 13:59:53 -08:00
Phillip Webb 0afbc0b23c Polish 'Accept Docker progress on numbers >2GB'
Restore `int` returns for existing methods and deprecate them in
favor of a new `asPercentage()` method.

See gh-43328
2024-12-02 13:58:03 -08:00
Wolfgang Kronberg d8565185e8 Accept Docker progress on numbers >2GB
Update `ProgressUpdateEvent` to support images of a file size
>2GB without provoking build failures.

See gh-43328
2024-12-02 13:56:09 -08:00
Moritz Halbritter d5344e3f1b Polish "Fix property name in OnEnabledLoggingExportConditionTests"
See gh-43331
2024-12-02 13:52:01 +01:00
Johnny Lim 1f17e0125d Fix property name in OnEnabledLoggingExportConditionTests
See gh-43331
2024-12-02 13:49:39 +01:00
Moritz Halbritter ff9fde0ef4 Polish "Make UserDetailsServiceAutoConfiguration conditional on servlet app"
See gh-43334
2024-12-02 13:40:51 +01:00
BenchmarkingBuffalo c5d41f1469 Make UserDetailsServiceAutoConfiguration conditional on servlet app
See gh-43334
2024-12-02 13:22:07 +01:00
Moritz Halbritter 07bc5f2563 Polish "Remove redundant null check for sorter"
See gh-43343
2024-12-02 11:39:37 +01:00
Jae-Young98 bd367803d1 Remove redundant null check for sorter
See gh-43343
2024-12-02 11:37:56 +01:00
Stéphane Nicoll 5e33808607 Merge branch '3.3.x'
Closes gh-43342
2024-12-02 09:42:52 +01:00
Yanming Zhou d81678016e Restore System property in Logging section of the reference documentation
Before this commit, it is rendered as an unexpected link with simple class
name, it should be full qualified class name.

See gh-43341
2024-12-02 09:42:08 +01:00
BenchmarkingBuffalo b86b81da35 Remove prohibited undertow upgrade restriction
See gh-43333
2024-12-02 09:36:01 +01:00
Stéphane Nicoll 615b199364 Update copyright year of changed file
See gh-43316
2024-11-29 10:35:12 +01:00
Johnny Lim 859c235a95 Polish
See gh-43316
2024-11-29 10:35:11 +01:00
Yanming Zhou aaaeddcd7d Update javadoc to describe registration through spring.factories
See gh-43313
2024-11-29 09:22:49 +00:00
Andy Wilkinson 512584d990 Merge branch '3.3.x'
Closes gh-43325
2024-11-29 09:18:28 +00:00
Stefano Cordio 26b1d74470 Fix link to proxyBeanMethods in @AutoConfiguration javadoc
See gh-43323
2024-11-29 09:17:27 +00:00
Andy Wilkinson d96aef219f Merge branch '3.3.x'
Closes gh-43324
2024-11-29 09:08:53 +00:00
Tran Ngoc Nhan 82652aba49 Fix Servlet and JPA javadoc links
See gh-43320
2024-11-29 09:07:19 +00:00
Andy Wilkinson f3a161afdd Enable relaxed matching of enabled and access properties
The lowercase form of the endpoint ID needs to be used so that
relaxed matching of properties, as provided by
ConfigurationPropertySources, works as intended. Without this
change the id of the endpoint in a property had to be an exact
match of the endpoint's ID.

Closes gh-43302
2024-11-28 14:17:37 +00:00
Andy Wilkinson b5feadab13 Merge pull request #43314 from quaff
* gh-43314:
  Polish "Document StructuredLoggingJsonMembersCustomizer constructor params"
  Document StructuredLoggingJsonMembersCustomizer constructor params

Closes gh-43314
2024-11-28 13:39:51 +00:00
Andy Wilkinson 15109b2eb2 Polish "Document StructuredLoggingJsonMembersCustomizer constructor params"
See gh-43314
2024-11-28 13:39:30 +00:00
Yanming Zhou 34ac045073 Document StructuredLoggingJsonMembersCustomizer constructor params
See gh-43314
2024-11-28 13:38:05 +00:00
Andy Wilkinson d3c5a4bf8d Merge branch '3.3.x'
Closes gh-43315
2024-11-28 11:34:59 +00:00
Andy Wilkinson 5cff43ddff Link to EnableMethodSecurity instead of EnableGlobalMethodSecurity
Closes gh-43308
2024-11-28 11:33:37 +00:00
Andy Wilkinson a1c1e32947 Call spring.factories customizers in the same way as one from props
Previously, customizers loaded from spring.factories were called
using LambdaSafe. This resulted in customizers with a generic type
more specific than Object being ignored. A customizer loaded from
the logging.structured.json.customizer property was not affected as
it was called directly rather than through LambdaSafe.

This commit aligns the way in which customizers loaded from
spring.factories are called with the way in which any customizer
specified using the logging.structured.json.customizer property is
called.

Closes gh-43312
2024-11-28 11:08:32 +00:00
Stéphane Nicoll f9aedf5a43 Merge branch '3.3.x'
Closes gh-43311
2024-11-28 09:31:02 +01:00
Tran Ngoc Nhan 57a5fa0555 Fix Javadoc link for Hikari
See gh-43305
2024-11-28 09:26:40 +01:00
Andy Wilkinson 74d69d0eb1 Merge branch '3.3.x'
Closes gh-43307
2024-11-27 20:14:23 +00:00
Andy Wilkinson 7bc709c32f Fix subName from adapted name with value processor
Previously, when a configuration property name was created by
adapting a source with a value processor, creating sub names from
that property name did not work correctly. This broke binding of
prefixed environment variables to a map as the ancestor checking
did not work.

Fixes gh-43304
2024-11-27 19:34:35 +00:00
Stéphane Nicoll de268324e0 Merge branch '3.3.x'
Closes gh-43299
2024-11-27 08:25:00 +01:00
Tran Ngoc Nhan 16838a9b58 Fix syntax in reference guide
See gh-43271
2024-11-27 08:24:16 +01:00
Stéphane Nicoll d8c41c2583 Defensively unwrap CacheConnectionFactory
This commit refines the optimization introduced in gh-39816 to only
unwrap our own caching connection factory. The more advanced unwrap
algorithm is still available, but opt-in only.

Unwrapping more aggressively may break use cases where the wrapped
ConnectionFactory is required, i.e. for transactional purposes.

Closes gh-43277
2024-11-26 19:56:32 +01:00
Andy Wilkinson 23d92aa32e Merge branch '3.3.x'
Closes gh-43291
2024-11-26 13:42:40 +00:00
Andy Wilkinson d924e4d999 Mark shaded application's jar as multi-release by default
Spring Framework now uses a multi-release jar for its virtual thread
support. If the shaded jar is not marked as being a multi-release jar
and virtual threads are enabled, the application will fail to start as
the Java 21+ virtual threads delegate will be unavailable.

This commit updates the starter parent's default configuration for the
Maven Shade plugin to set Multi-Release: true in the application's
manifest.

Closes gh-43284
2024-11-26 13:42:03 +00:00
Andy Wilkinson 32433e84f3 Merge branch '3.3.x'
Closes gh-43270
2024-11-22 15:46:38 +00:00
Andy Wilkinson bb3651b7d1 Reduce warnings reported by Eclipse
Closes gh-43269
2024-11-22 15:39:35 +00:00
Andy Wilkinson 3bff418df9 Merge branch '3.3.x'
Closes gh-43267
2024-11-22 11:59:19 +00:00
Andy Wilkinson cf1dadf2e7 Stop publishing CLI's Homebrew formula in commercial builds
Closes gh-43247
2024-11-22 11:58:50 +00:00
Johnny Lim fa0a4849fa Update Javadoc since for OtlpMetricsProperties and OtlpTracingProperties
See gh-43249
2024-11-22 08:24:59 +01:00
Andy Wilkinson 109e731c83 Revert "Add `@ConditionalOnMissingBean` for `JobRepository`"
This reverts commit 73fc351d71.

See gh-43236
2024-11-21 13:31:20 +00:00
Stéphane Nicoll 14989a5fb7 Upgrade to Testcontainers 1.20.4
Closes gh-43243
2024-11-21 09:32:54 +01:00
Stéphane Nicoll c188822db3 Upgrade to Spring Security 6.4.1
Closes gh-43232
2024-11-21 09:32:50 +01:00
Stéphane Nicoll e286739cee Upgrade to Spring Batch 5.2.0
Closes gh-43018
2024-11-21 09:32:50 +01:00
Phillip Webb 73fc351d71 Add `@ConditionalOnMissingBean` for `JobRepository`
Update `BatchAutoConfiguration` so that the `JobRepository` is not
defined when the user provides an appropriate bean.

Fixes gh-43236
2024-11-20 21:57:52 -08:00