Commit Graph

49791 Commits

Author SHA1 Message Date
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
Andy Wilkinson
3ef2bcfe82 Merge branch '3.3.x'
Closes gh-41595
2024-07-23 16:21:37 +01:00
Andy Wilkinson
46f57288d7 Merge pull request #41574 from jmewes
* gh-41574:
  Polish "Add hint for new dependencies required for Flyway"
  Add hint for new dependencies required for Flyway

Closes gh-41574
2024-07-23 16:21:23 +01:00
Andy Wilkinson
8de72c80c6 Polish "Add hint for new dependencies required for Flyway"
See gh-41574
2024-07-23 16:21:06 +01:00
Jan Mewes
0fa9467ef3 Add hint for new dependencies required for Flyway
See gh-41574
2024-07-23 16:20:59 +01:00
Stéphane Nicoll
282b3bc0a0 Merge branch '3.3.x'
Closes gh-41594
2024-07-23 16:46:25 +02:00
Stéphane Nicoll
53b275d0c7 Merge branch '3.2.x' into 3.3.x
Closes gh-41593
2024-07-23 16:46:16 +02:00
Stéphane Nicoll
7161f92e33 Merge pull request #41591 from lamtrinhdev
* pr/41591:
  Fix link to Flyway reference documentation

Closes gh-41591
2024-07-23 16:46:11 +02:00
LamTrinh.Dev
b469c743e1 Fix link to Flyway reference documentation
See gh-41591
2024-07-23 16:41:44 +02:00
Andy Wilkinson
0209ab50d3 Merge pull request #39452 from BenchmarkingBuffalo
* gh-39452:
  Polish "Support `@Name` with JavaBean-based configuration properties"
  Support `@Name` with JavaBean-based configuration properties

Closes gh-39452
2024-07-23 15:05:18 +01:00
Andy Wilkinson
23b344691d Polish "Support @Name with JavaBean-based configuration properties"
See gh-39452
2024-07-23 14:00:20 +01:00
BenchmarkingBuffalo
a305e2d1bd Support @Name with JavaBean-based configuration properties
See gh-39452
2024-07-23 13:48:19 +01:00
Andy Wilkinson
c790deb7d2 Merge branch '3.3.x'
Closes gh-41590
2024-07-23 10:06:46 +01:00
Andy Wilkinson
72fd3f9392 Merge branch '3.2.x' into 3.3.x
Closes gh-41589
2024-07-23 10:06:15 +01:00
Andy Wilkinson
72867a3b25 Broaden test coverage for property binding with @Name
Closes gh-41588
2024-07-23 09:39:17 +01:00
Andy Wilkinson
177a24d6a4 Merge branch '3.3.x'
Closes gh-41586
2024-07-23 09:11:56 +01:00
Andy Wilkinson
db4b483811 Merge branch '3.2.x' into 3.3.x
Closes gh-41585
2024-07-23 09:11:16 +01:00
Andy Wilkinson
9bb0c45ddb Add tip about using @Name to rename constructor bound property
Closes gh-41577
2024-07-23 09:08:42 +01:00
Phillip Webb
c38adaedc2 Test that ConnectionFactoryUnwrapper works without pooled-jms jar
Closes gh-41583
2024-07-23 08:37:58 +01:00
Phillip Webb
88480664d7 Polish 2024-07-22 19:59:27 +01:00
Phillip Webb
000600c68a Merge branch '3.3.x' 2024-07-22 18:41:53 +01:00
Phillip Webb
d9360a034f Polish 2024-07-22 18:41:12 +01:00
Phillip Webb
36b1214feb Merge branch '3.2.x' into 3.3.x 2024-07-22 18:30:45 +01:00
Phillip Webb
61dc82d836 Update copyright year of changed files 2024-07-22 18:16:19 +01:00
Phillip Webb
ff1a4654d2 Polish 2024-07-22 18:15:57 +01:00
Andy Wilkinson
98ed90d691 Merge pull request #39376 from ronaldmik
* gh-39376:
  Polish "Derive driverClassName from URL when otherwise unknown"
  Derive driverClassName from URL when otherwise unknown

Closes gh-39376
2024-07-22 09:42:39 +01:00
Andy Wilkinson
a12bfd9ec3 Polish "Derive driverClassName from URL when otherwise unknown"
See gh-39376
2024-07-22 09:42:28 +01:00
Ronald Mik
4611230d69 Derive driverClassName from URL when otherwise unknown
See gh-39376
2024-07-22 09:41:58 +01:00
Andy Wilkinson
82706ac91a Merge branch '3.3.x'
Closes gh-41572
2024-07-22 09:06:12 +01:00
Andy Wilkinson
682a5b27aa Wait until spring-boot.rb is available when updating Homebrew tap
Closes gh-41561
2024-07-22 09:05:30 +01:00
Andy Wilkinson
4d466c3cc0 Merge branch '3.3.x'
Closes gh-41564
2024-07-19 16:29:31 +01:00