Commit Graph

54471 Commits

Author SHA1 Message Date
Andy Wilkinson
4ee24bf9bd Polish "Add rule to prevent calls to Objects.requireNonNull()"
See gh-41611
2024-07-29 11:41:26 +01:00
ivamly
fb22c189f4 Add rule to prevent calls to Objects.requireNonNull()
See gh-41611
2024-07-29 10:35:44 +01:00
Moritz Halbritter
870b02b4d3 Polish 2024-07-29 11:24:49 +02:00
Stéphane Nicoll
3da45aabbf Merge pull request #41551 from eddumelendez
* pr/41551:
  Polish "Add support for Grafana LGTM stack"
  Add support for Grafana LGTM stack

Closes gh-41551
2024-07-29 10:56:07 +02:00
Stéphane Nicoll
dabc83338b Polish "Add support for Grafana LGTM stack"
See gh-41551
2024-07-29 10:43:56 +02:00
Eddú Meléndez
9eff627eb2 Add support for Grafana LGTM stack
See gh-41551
2024-07-29 10:33:08 +02:00
Stéphane Nicoll
f11dc544b6 Upgrade to Testcontainers 1.20.0
Cloess gh-41626
2024-07-26 18:21:42 +02:00
Phillip Webb
915f841dc6 Merge branch '3.3.x'
Closes gh-41628
2024-07-26 16:23:23 +01:00
Phillip Webb
60fa9bd04b Merge branch '3.2.x' into 3.3.x
Closes gh-41627
2024-07-26 16:23:09 +01:00
Phillip Webb
1a8e9c14b1 Fix "Use Spring Data repositories" how-to to refer to interfaces
The previous how-to accidentally referenced the `@Repository` annotation
and not the Spring Data `Repository` interface.

Closes gh-41625
2024-07-26 16:20:09 +01:00
Brian Clozel
627220554b Activate health probes in Cloud Foundry environments
This commit ensures that Health probes are automatically enabled when
the application runs on Cloud Foundry. This was already the case for
Kubernetes, but now that Cloud Foundry supports this feature we should
do the same.

Closes gh-39804
2024-07-26 11:08:46 +02:00
Phillip Webb
5da51aaa78 Merge branch '3.3.x' 2024-07-26 09:17:54 +01:00
Phillip Webb
98ee3f2151 Fixup javadoc and reference URLs 2024-07-26 09:17:34 +01:00
Stéphane Nicoll
88448d68b0 Merge branch '3.3.x'
Closes gh-41623
2024-07-26 09:25:55 +02:00
Stéphane Nicoll
687b87f50a Merge branch '3.2.x' into 3.3.x
Closes gh-41622
2024-07-26 09:25:39 +02:00
Stéphane Nicoll
92c3dbe606 Merge pull request #41612 from ngocnhan-tran1996
* pr/41612:
  Fix link to documentation for log4j-spring-boot

Closes gh-41612
2024-07-26 09:25:33 +02:00
Tran Ngoc Nhan
13023665dc Fix link to documentation for log4j-spring-boot
See gh-41612
2024-07-26 09:22:34 +02:00
Phillip Webb
fdd5d007f5 Merge branch '3.3.x' 2024-07-25 20:49:42 +01:00
Phillip Webb
28faf12062 Migrate plugins to javadoc asciidoctor macro
See gh-41605
2024-07-25 20:49:02 +01:00
Andy Wilkinson
f47ff3181a Merge branch '3.3.x'
Closes gh-41620
2024-07-25 18:31:44 +01:00
Andy Wilkinson
d47cb4a2ad Merge pull request #41596 from cms04
* gh-41596:
  Polish "Deprecate ControllerEndpointsSupplier and ExposableControllerEndpoint"
  Deprecate ControllerEndpointsSupplier and ExposableControllerEndpoint

Closes gh-41596
2024-07-25 18:31:35 +01:00
Andy Wilkinson
4c9013fe0d Polish "Deprecate ControllerEndpointsSupplier and ExposableControllerEndpoint"
See gh-41596
2024-07-25 18:31:28 +01:00
cms04
e35016422a Deprecate ControllerEndpointsSupplier and ExposableControllerEndpoint
See gh-41596
2024-07-25 18:31:27 +01:00
Phillip Webb
84e2049fc5 Merge branch '3.3.x' 2024-07-25 18:25:23 +01:00
Phillip Webb
fd58261b9d Revert "Migrate plugins to javadoc asciidoctor macro"
This reverts commit b63e1e7443.
2024-07-25 18:25:15 +01:00
Phillip Webb
7bbb5003db Merge branch '3.3.x' 2024-07-25 18:05:04 +01:00
Phillip Webb
b63e1e7443 Migrate plugins to javadoc asciidoctor macro
See gh-41605
2024-07-25 18:03:37 +01:00
Phillip Webb
72ecc2643e Fix javadoc URL 2024-07-25 18:03:37 +01:00
Andy Wilkinson
575abf743c Merge branch '3.3.x'
Closes gh-41618
2024-07-25 16:36:31 +01:00
Andy Wilkinson
163581cfe8 Rename DataLdapTestIntegrationTests to remove clash
Closes gh-41617
2024-07-25 16:35:37 +01:00
Andy Wilkinson
e201b94d4f Merge branch '3.3.x'
Closes gh-41616
2024-07-25 16:17:52 +01:00
Andy Wilkinson
c642f6d268 Merge branch '3.2.x' into 3.3.x
Closes gh-41613
2024-07-25 16:16:35 +01:00
Phillip Webb
44dfd1f637 Merge branch '3.3.x'
Closes gh-41615
2024-07-25 15:28:51 +01:00
Phillip Webb
2199a313be Migrate to javadoc asciidoctor macro
Closes gh-41605
2024-07-25 15:25:00 +01:00
Phillip Webb
e725aa609f Merge branch '3.3.x' 2024-07-25 15:17:00 +01:00
Phillip Webb
cbd9cd654b Add @springio/asciidoctor-extensions/javadoc-extension
See gh-41605
2024-07-25 15:15:02 +01:00
Phillip Webb
e3cc95f6ab Upgrade to springio/asciidoctor-extensions 1.0.0-alpha.11 2024-07-25 15:14:39 +01:00
Brian Clozel
e2bd95596d Shut down Reactor Schedulers for WAR deployments
Prior to this commit, Spring applications and libraries would call
`Schedulers.boundedElastic()` or similar static methods at runtime. This
would ininitialize and cache reactive schedulers for the Reactor core
library. Those instances are cached for the lifetime of the JVM and are
shared static instances.

In a  WAR deployment case, those schedulers would be initialized and
tied to the web application servlet context class loader. When
undeploying the web applications, schedulers would not be automatically
shut down and this would keep the now useless application classloader,
leaking resources.

This commit ensures that Spring Boot shuts down shared schedulers if
they were loaded and initiazed by the web application classloader, once
the the Spring application context is closed.

Closes gh-41548
2024-07-25 16:06:59 +02:00
Andy Wilkinson
5f666eec5b Reduce warnings reported by Eclipse
Closes gh-41598
2024-07-25 14:55:00 +01:00
Brian Clozel
397f87964b Fix flaky tests for scheduled tasks actuator support
See gh-17585
2024-07-25 10:09:34 +02:00
Brian Clozel
e8391f121e Add execution metadata to scheduled tasks actuator endpoint
As of spring-projects/spring-framework#24560, Spring provides additional
metadata for scheduled tasks:
* next execution time
* last execution outcome (including status, time and raised exception)

This commit leverages this information to enhance the existing
`scheduledtasks` Actuator endpoint.

Closes gh-17585
2024-07-25 09:26:50 +02:00
Andy Wilkinson
f1e98d0a73 Merge branch '3.3.x'
Closes gh-41608
2024-07-24 19:23:04 +01:00
Andy Wilkinson
a00304de28 Merge branch '3.2.x' into 3.3.x
Closes gh-41607
2024-07-24 19:22:49 +01:00
Andy Wilkinson
f9f530ddaa Remove method references to improve compatibility
The use of method references requires the referenced method to be
present even if it isn't called. This made it impossible for Gradle
to remove the deprecated methods as it would break our plugin.
By switching the lambdas, the methods only have to be present when
they're called which will only happen with Gradle 8.2 and earlier.

Closes gh-41599
2024-07-24 19:22:05 +01:00
Phillip Webb
de3b14f2b4 Refine structured logging
Refine structured logging to support `Environment`, `ApplicationPid` and
`ElasticCommonSchemaService` injection. With these updates we are able
to remove the `ApplicationMetadata` class and simplify the parameters
passed to the layout/encoder classes.

Closes gh-41491
2024-07-24 19:06:07 +01:00
Phillip Webb
50dbaec2d0 Refine JsonWriter for structured logging
Add `formatToBytes()` method for use with structured logging.

See gh-41491
2024-07-24 19:06:07 +01:00
Phillip Webb
700c1e8f82 Refine ApplicationPid for structured logging
Update `ApplicationPid` with `toLong()` and `isAvailable()` methods to
make it easier to use with structured logging.

See gh-41491
2024-07-24 19:06:07 +01:00
Andy Wilkinson
09fdb9d36c Allow child context to override parent's configuration properties
Closes gh-41487
2024-07-24 18:47:19 +01:00
Andy Wilkinson
12ec18fd31 Consider fallback beans when evaluating ConditionalOnSingleCandidate
Closes gh-41580
2024-07-23 18:28:07 +01:00
maxhov
3561ab8300 Allow configuring custom GraphQL argument resolvers
This commit gathers `HandlerMethodArgumentResolver` beans contributed by
the application and sets them up on the auto-configured
`AnnotatedControllerConfigurer` bean.

This allows easier registrationsfor custom argument resolvers in Spring
for GraphQL applications.

Closes gh-40393
2024-07-23 17:32:52 +02:00