Commit Graph

1225 Commits

Author SHA1 Message Date
Dmytro Nosan fbeace397f Add the ability to trigger a Quartz job through an Actuator endpoint
Add new methods to `QuartzEndpoint` and `QuartzEndpointWebExtension`
to allow a Quartz job to be triggered on demand.

See gh-43086

Signed-off-by: Dmytro Nosan <dimanosan@gmail.com>
2025-02-04 16:29:39 -08:00
Phillip Webb 2b72e1170a Remove spring-boot-smoke-test-pulsar4
Closes gh-43535
2025-02-04 13:50:59 -08:00
Moritz Halbritter 61d7f3783e Implement config data loader to load from environment variables
The config data loader supports the env: prefix and also accepts
extension hints.

Example: env:VAR1[.properties] reads the environment
variable 'VAR1' in properties format (using the
PropertiesPropertySourceLoader).

The PropertySourceLoaders are loaded via spring.factories.

Also adds a smoke test to test it end to end.

Closes gh-41609
2025-01-31 09:33:28 +01:00
Dmytro Nosan 6ba8e9b089 Fix SystemStatusListener to prevent superfluous output
Fix `SystemStatusListener` so that superfluous output is not
printed when starting an application. This change ensures that
the `SystemStatusListener` is not added twice, and that
retrospective logging only occurs when `debug` is true.

See gh-43931

Signed-off-by: Dmytro Nosan <dimanosan@gmail.com>
2025-01-28 11:15:55 -08:00
Dmytro Nosan 258eb29978 Register Logback StatusListener when using custom Logback file
Update `LogbackLoggingSystem` so that the `OnErrorConsoleStatusListener`
is also registered when loading a custom Logback configuration file.

See gh-43931

Signed-off-by: Dmytro Nosan <dimanosan@gmail.com>
2025-01-27 22:26:53 -08:00
Phillip Webb 3ff6e0b5a9 Merge branch '3.4.x' 2025-01-24 19:24:42 -08:00
Phillip Webb 8ec61b9870 Polish 'Refactor `@ConfigurationProperties` that only use `prefix`'
See gh-43917
2025-01-24 14:59:32 -08:00
Yanming Zhou c1d97ffe16 Refactor `@ConfigurationProperties` that only use `prefix`
See gh-43917

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
2025-01-24 14:58:36 -08:00
Andy Wilkinson 049fe3eadd Merge branch '3.4.x'
Closes gh-43891
2025-01-21 12:10:35 +00:00
Andy Wilkinson 00f88b9e05 Remove overly specific casts from SslConnectorCustomizer
Closes gh-43849
2025-01-21 12:09:46 +00:00
Andy Wilkinson 9b123926b2 Align profile names with new restrictions
See gh-43176
2025-01-15 15:02:06 +00:00
Andy Wilkinson eef61c2ac9 Align profile names with new restrictions
See gh-43176
2025-01-15 12:21:21 +00:00
Dmytro Nosan c256f41fce Logback StructuredLogFormatter exceptions are not visible to the user
Before this commit, any exceptions thrown in Logback encoders
were just swallowed. This commit adds the FilteringStatusListener
that delegates to OnErrorConsoleStatusListener to print any errors
that happened in logback encoders.

See gh-43575

Signed-off-by: Dmytro Nosan <dimanosan@gmail.com>
2025-01-13 13:01:44 +01:00
Phillip Webb a49719d73e Use consistent exception messages in Assert calls
Update `Assert` calls to consistently use messages of the form
"'item' must [not] ...".

Closes gh-43780
2025-01-11 21:18:47 -08:00
Stéphane Nicoll 049f8a0aab Rely on standard NoOpResponseErrorHandler 2025-01-11 12:55:03 +01:00
Phillip Webb 3346ca7899 Deal with Spring Framework deprecation
See gh-43750
2025-01-11 00:25:38 -08:00
Dmytro Nosan b6b9237f2c Reset StatusLogger fallback listener stream on initialization
Update `Log4J2LoggingSystem` so that the `StatusLogger` fallback
listener has its print stream reset on each initialization. This
allows output capture to work with the status listener.

Fixes gh-43578

Co-authored-by: Phillip Webb <phil.webb@broadcom.com>
2025-01-06 17:58:21 -08:00
Andy Wilkinson 51d15c7c78 Merge branch '3.3.x'
Closes gh-43649 in 3.4.x
Closes gh-43651
2025-01-02 12:22:59 +00:00
Andy Wilkinson d8a9ebd14b Upgrade to Gradle 8.12
Closes gh-43649
2025-01-02 12:05:14 +00:00
Andy Wilkinson 681d4c2744 Remove unused dependency management from spring-boot-parent
See gh-43584
2024-12-20 14:30:19 +00:00
Chris Bono f1c1291301 Add Pulsar 4.0.x smoke test
This commit adds a smoke test to verify basic functionality with the
Pulsar 4.0.x client.

See gh-43532
2024-12-16 16:09:08 -08:00
Phillip Webb 4d6fc85c8e Merge branch '3.3.x' 2024-12-13 19:03:48 -08:00
Phillip Webb 45da43c6b4 Update copyright year of changed files 2024-12-13 19:03:43 -08:00
Johnny Lim 4d15ee5bf0 Polish
See gh-43498
2024-12-13 13:29:20 -08:00
Phillip Webb 916efb632c Merge branch '3.3.x' 2024-12-04 15:04:22 -08:00
Phillip Webb 9e7972a9b4 Polish code with code cleanup rules 2024-12-04 15:03:40 -08:00
Stéphane Nicoll 60b028e7cb Merge branch '3.3.x'
Closes gh-43377
2024-12-04 10:57:58 +01:00
Yanming Zhou 3f17e42b38 Polish formatting of log configuration file
1. Remove space before `/>` to keep consistency.
2. Capitalize `filters` for Log4j2.
3. Uppercase log level to keep consistency.

See gh-43322
2024-12-04 10:28:28 +01:00
Johnny Lim 0b854bfee1 Replace "structure logging" with "structured logging"
See gh-43203
2024-11-16 08:30:09 -08:00
Phillip Webb 36a22fcd59 Unify HTTP client redirect behavior and provide configuration option
Update `ClientHttpRequestFactoryBuilder` implementations to ensure
that all libraries have consistent redirect follow behavior. Following
of redirects is enabled by default.

The `ClientHttpRequestFactorySettings` may be used to change if
redirects should be followed. The `spring.http.client.redirects`
property may also be used to update the default behavior.

Closes gh-42879
2024-10-25 02:45:36 -07:00
Phillip Webb 3a8b2e4bc8 Add `HttpClientAutoConfiguration` and use it wherever possible
Add a new `HttpClientAutoConfiguration` class that provides
`ClientHttpRequestFactoryBuilder` and `ClientHttpRequestFactorySettings`
beans and new configuration properties.

The existing `RestTemplate`, `RestClient` and `WebServiceTemplate`
auto-configurations have been updated to make use of the new
HTTP client support.

Users may now set `spring.http.client` property to globally change
the `ClientHttpRequestFactory` used in their application.

Closes gh-36266
2024-10-25 02:45:35 -07:00
Phillip Webb 8feba568da Polish 2024-10-25 02:45:35 -07:00
Phillip Webb 37ae78ea73 Add Tomacat 11 Smoke Test
Closes gh-42730
2024-10-18 12:56:20 -07:00
Moritz Halbritter ba1a780147 Merge branch '3.3.x'
Closes gh-42774
2024-10-17 18:06:43 +02:00
Moritz Halbritter 73150b799a Merge branch '3.2.x' into 3.3.x
Closes gh-42772
2024-10-17 17:58:11 +02:00
Moritz Halbritter ce106eb43c Remove calls to deprecated Project.getBuildDir() in Gradle files
Closes gh-42739
2024-10-17 17:46:17 +02:00
Andy Wilkinson 25082d33e7 Provide more control over access to endpoint operations
This commit reworks the support for enabling and disabling endpoints,
replacing the on/off support that it provided with a finer-grained
access model that supports only allowing read-only access to endpoint
operations in addition to disabling an endpoint (access of none) and
fully enabling it (access of unrestricted).

The following properties are deprecated:

- management.endpoints.enabled-by-default
- management.endpoint.<id>.enabled

Their replacements are:

- management.endpoints.access.default
- management.endpoint.<id>.access

Similarly, the enableByDefault attribute on @Endpoint has been
deprecated with a new defaultAccess attribute replacing it.

Additionally, a new property has been introduced that allows an
operator to control the level of access to Actuator endpoints
that is permitted:

- management.endpoints.access.max-permitted

This property caps any access that may has been configured for
an endpoint. For example, if
management.endpoints.access.max-permitted is set to read-only and
management.endpoint.loggers.access is set to unrestricted, only
read-only access to the loggers endpoint will be allowed.

Closes gh-39046
2024-10-17 13:56:44 +01:00
Moritz Halbritter c018c43886 Merge branch '3.3.x'
Closes gh-42736
2024-10-17 13:44:25 +02:00
Moritz Halbritter 8efe6e02d9 Merge branch '3.2.x' into 3.3.x
Closes gh-42735
2024-10-17 13:38:03 +02:00
Moritz Halbritter a3060652f8 Call String.toLowerCase and .toUppercase with explicit locale
Closes gh-42719
2024-10-17 13:20:39 +02:00
Phillip Webb 465e909974 Merge branch '3.3.x' 2024-10-16 13:09:09 -07:00
Phillip Webb 5732782043 Merge branch '3.2.x' into 3.3.x 2024-10-16 13:08:44 -07:00
Phillip Webb 41ae973d16 Update copyright year of changed files 2024-10-16 13:08:37 -07:00
Andy Wilkinson 1e33e6bc0d Merge branch '3.3.x'
Closes gh-42714
2024-10-16 12:18:22 +01:00
Andy Wilkinson 4b89ba7d20 Merge branch '3.2.x' into 3.3.x
Closes gh-42713
2024-10-16 12:15:34 +01:00
Andy Wilkinson 2c982260df Use platform dependencies instead of the dependency management plugin
Closes gh-42712
2024-10-16 12:08:44 +01:00
Phillip Webb 7af238a192 Merge branch '3.3.x'
Closes gh-42706
2024-10-15 18:03:00 -07:00
Phillip Webb d3061439b2 Merge branch '3.2.x' into 3.3.x
Closes gh-42705
2024-10-15 18:02:54 -07:00
Phillip Webb 51ff8d411c Fix Oracle JDK download URLs
Closes gh-42704
2024-10-15 18:02:40 -07:00
Stéphane Nicoll 06127d60b6 Adapt Kafka SSL smoke test with changes in Testcontainers
See gh-42670
2024-10-15 17:56:23 +02:00