Commit Graph

12812 Commits (5e2a61174296a73e5b38e445fb4854e5e36135ba)

Author SHA1 Message Date
Phillip Webb ddf5c9f5d1 Merge branch '2.3.x' into 2.4.x
Closes gh-25786
4 years ago
Phillip Webb 88b74097ba Polish 'Ignore quality value when removing MediaType.ALL'
See gh-25778
4 years ago
Fábio Ramon 3090a3a71f Ignore quality value when removing MediaType.ALL
Update the default reactive exception handler so that `MediaType.ALL`
is removed regardless of any quality setting. Prior to this commit,
the "match-all" media type was not properly ignored if it has a quality
value and would show HTML content if the accept header was
`application/json, */*;q=0.9`.

See gh-25778
4 years ago
Phillip Webb 38584f0694 Merge branch '2.4.x'
Closes gh-25785
4 years ago
Phillip Webb 5274cf2459 Merge branch '2.3.x' into 2.4.x
Closes gh-25784
4 years ago
Phillip Webb 130cc5b036 Chain caught InvalidEndpointRequestExceptions
Update `AbstractWebMvcEndpointHandlerMapping` to chain any caught
InvalidEndpointRequestExceptions so that a more complete stacktrace
is available. The exception has also been updated to a
`ResponseStatusException` so that the reason can be propagated.

Fixes gh-25642
4 years ago
Andy Wilkinson 90b4ced7a6 Move DataSource init auto-config out of DataSourceAutoConfiguration
Previously, the auto-configuration for DataSource initialization and
the properties used to configure it were part of the general
DataSource auto-configuration and properties.

This commit moves the auto-configuration of DataSource initialization
out into a separate top-level auto-configuration class. Similarly,
the properties for configuring DataSource initialization have been
moved from `spring.datasource.*` into `spring.sql.init.*`.

The old initialization-related `spring.datasource.*` properties have
been deprecated but can still be used. When they are used, they new,
separate initialization auto-configuration will back off. In other
words, the initialization related `spring.datasource.*` properties
and the `spring.sql.init.*` properties cannot be used in combination.

Closes gh-25323
4 years ago
Andy Wilkinson e2811ace72 Improve testing of optional schema and data scripts
See gh-25487
4 years ago
Andy Wilkinson 5758a5aa39 Rename DDL/DML script location properties
See gh-25756
4 years ago
Stephane Nicoll 36b63eec4b Polish "Expose Spring Integration global properties"
See gh-25377
4 years ago
Artem Bilan e2df9bce84 Expose Spring Integration global properties
Spring Integration comes with some global properties which can be
configured via `META-INF/spring.integration.properties`. The framework
then provides an `integrationGlobalProperties` bean as an
`org.springframework.integration.context.IntegrationProperties`
instance.

This commit allows users to configure these using regular
`application.properties`. If a `META-INF/spring.integration.properties`
file exists, the values are used as fallback.

See gh-25377
4 years ago
Phillip Webb deaff1a522 Merge branch '2.4.x'
Closes gh-25775
4 years ago
Phillip Webb ca9fae6b47 Merge branch '2.3.x' into 2.4.x
Closes gh-25774
4 years ago
Phillip Webb ec21202d54 Delete unpacked jars when the JVM exits
Update `JarFileArchive` so that any unpacked files are now deleted when
the JVM exits.

Closes gh-25773
4 years ago
Phillip Webb 05f61bccea Align unpack logic with Files.createTempDirectory
Update `JarFileArchive` to align the way that it creates temp files and
folders with the way that `Files.createTempDirectory` works.

Closes gh-25772
4 years ago
Phillip Webb b8873578ca Add missing @Deprecated annotations 4 years ago
Phillip Webb b8fdb442b0 Merge branch '2.4.x' 4 years ago
Phillip Webb 9af6c895c9 Merge branch '2.3.x' into 2.4.x 4 years ago
Phillip Webb 2b591387b8 Restore tomcat-embed TldPatterns
Restore tomcat-embed-core-* and tomcat-embed-logging-* patterns which
were inadvertently removed in commit 0ec8d281ef.

See gh-25764
4 years ago
Phillip Webb 77ddb45704 Merge branch '2.4.x' 4 years ago
Phillip Webb 11a94ee6f0 Merge branch '2.3.x' into 2.4.x 4 years ago
Phillip Webb 82127fdaa3 Update copyright year of changed files 4 years ago
Phillip Webb 985e5a4340 Merge branch '2.4.x'
Closes gh-25771
4 years ago
Phillip Webb 56674b9031 Merge branch '2.3.x' into 2.4.x
Closes gh-25770
4 years ago
Phillip Webb 0ec8d281ef Align TldPatterns with Tomcat default
Update `TldPatterns` to align with the latest default shipped by Tomcat.
This commit also introduces a test to ensure that we will remain aligned
going forwards.

Closes gh-25764
4 years ago
Andy Wilkinson 5e3d5ebe21 Merge branch '2.4.x'
Closes gh-25769
4 years ago
Andy Wilkinson 96ba9ae47f Merge branch '2.3.x' into 2.4.x
Closes gh-25768
4 years ago
Andy Wilkinson 62023104de Test auto-configured MockRestServiceServer with metrics and a root URI
Closes gh-25741
4 years ago
Andy Wilkinson ce3dfc5792 Merge branch '2.4.x'
Closes gh-25767
4 years ago
Stephane Nicoll db782f5013 Add environment prefix support to SpringApplicationBuilder
Closes gh-25740
4 years ago
Andy Wilkinson 33cf8b3bc4 Merge branch '2.3.x' into 2.4.x
Closes gh-25765
4 years ago
Andy Wilkinson bf6f36a783 Apply any root URI to RestTemplate metric's URI tag
Previously, a root URI configured via RestTemplateBuilder's rootUri
method and RootUriTemplateHandler was not taken into account when
generated the URI tag for RestTemplate request metrics.

This commit updates MetricsClientHttpRequestInterceptor to be aware
of RootUriTemplateHandler and capture the URI template once the
root URI has been applied.

Fixes gh-25744
4 years ago
Andy Wilkinson f0a8c02efd Provide a constant for graceful shutdown's smart lifecyle phase
In order to provide a single constant for graceful shutdown's smart
lifecycle, this commit replaces the package-private reactive and
servlet-specific implementations with a single public implementation
that can be used by both web stacks. This new public implementation
provides a constant for its smart lifecycle phase.

Closes gh-24255
4 years ago
Andy Wilkinson ca46fe7cd0 Test our Gradle plugin against Gradle 7.0-rc-1
Closes gh-25763
4 years ago
Andy Wilkinson 5dee68c925 Move script-based DataSource initializer into spring-boot
Closes gh-25487
Closes gh-25756
4 years ago
Andy Wilkinson fa336bb565 Move DataSource dependency detection into dedicated package
Closes gh-25757
4 years ago
Stephane Nicoll a900306b17 Merge branch '2.4.x'
Closes gh-25755
4 years ago
Stephane Nicoll 2ecae2df77 Merge branch '2.3.x' into 2.4.x
Closes gh-25754
4 years ago
Stephane Nicoll c2f452a87a Polish "Take JPA database action into account when setting ddlAuto"
See gh-25129
4 years ago
bono007 674b01cb06 Take JPA database action into account when setting ddlAuto
See gh-25129
4 years ago
Andy Wilkinson 64f9d8d4fe Deprecate support for Mustache's Environment fallback
Closes gh-21045
4 years ago
Scott Frederick 2dd4010eb0 Merge branch '2.4.x'
Closes gh-25701
4 years ago
Scott Frederick 6f860b441b Merge branch '2.3.x' into 2.4.x
Closes gh-25700
4 years ago
Andy Wilkinson fb670ee654 Drop support for Gradle 5.6.x
Closes gh-24225
4 years ago
Andy Wilkinson 83342c7aa7 Test the Gradle plugin against 7.0-milestone-3
Closes gh-25747
4 years ago
Phillip Webb 26ee346510 Polish 'Support OpenMetrics text format with Prometheus'
Closes gh-25564
4 years ago
Andy Wilkinson 11b4a19dee Support OpenMetrics text format with Prometheus
Update `PrometheusScrapeEndpoint` so that it can produce both classic
Prometheus text output as well as Openmetrics output.

See gh-25564
4 years ago
Phillip Webb c81a0223cc Refine 'Allow operations to produce different output'
Refine the new `Producible` support so that it can also be used with
`@ReadOperation`, `@WriteOperation` and `@DeleteOperation` annotations.

This update allows the same enum to be used both as an argument and as
an indicator of the media-types that an operation may produce.

Closes gh-25738
4 years ago
Andy Wilkinson 1ec49cee8b Allow operations to produce different output
Update the actuator @Enpoint` infrastructure code so that operations
may inject enums that indicate the type of output to produce. A new
`Producible` interface can be implemented by any enum that indicates
the mime-type that an enum value produces.

The new `OperationArgumentResolver` provides a general strategy for
resolving operation arguments with `ProducibleOperationArgumentResolver`
providing support for `Producible` enums. Existing injection support has
been refactored to use the new resolver.

See gh-25738
4 years ago
Phillip Webb 663fd8ce5e Update copyright year of changed files 4 years ago
Phillip Webb 685b045c3d Polish 4 years ago
Phillip Webb bb38ee38a6 Fix package tangle and polish prefix support
Polish the prefix support introduced in commit a8592f36d4 and fix a
package tangle between `boot.context.properties.source` and `boot.env`.

The `Prefix` interface has now been moved into a new default method on
`OriginLookup`.

See gh-3450
4 years ago
Stephane Nicoll 1111b3db98 Polish 4 years ago
Stephane Nicoll efcb5ee684 Upgrade to Spring Batch 4.3.2
Closes gh-25580
4 years ago
Stephane Nicoll 072c858d0e Upgrade to Spring Batch 4.3.2
Closes gh-25579
4 years ago
Stephane Nicoll eff3a4f1a6 Upgrade to Spring Kafka 2.7.0-RC1
Closes gh-25582
4 years ago
Stephane Nicoll cd81784772 Upgrade to Spring AMQP 2.3.6
Closes gh-25648
4 years ago
Stephane Nicoll 91619d6555 Upgrade to Spring Integration 5.5.0-M3
Closes gh-25577
4 years ago
Stephane Nicoll 8e35d6a5fc Upgrade to Spring Integration 5.4.5
Closes gh-25646
4 years ago
Phillip Webb 8ba45cc6b5 Allow DB migrations without DataSourceProperties
Update `FlywayAutoConfiguration`, `LiquibaseAutoConfiguration` and
`DataSourceInitializer` classes so that they no longer depend on
`DataSourceProperties`. DB migrations can now be performed against
a `@Bean` defined primary `DataSource` with an alternative
username/password.

This update also removed using fallback properties when a custom
connection `url` is defined with Flyway or Liquibase. We now assume
that `username`, `password` and `driver-class-name` will be provided
if the default values are unacceptable. Our previous logic was
particularly flawed if a custom URL caused a change of driver type.

Closes gh-25643
4 years ago
Phillip Webb 85f1e2c9b6 Refactor DataSourceBuilder and add derivedFrom
Refactor `DataSourceBuilder` to use direct property mappers rather than
the `Binder` and aliases. Supported DataSource types now include two-way
mappers which allows us to both get and set properties in a uniform way.

A new `derivedFrom` factory method has been added which allows a new
`DataSource` to be derived from an existing one. This update is
primarily to allow Flyway and Liquibase migrations to work against a
`@Bean` configured DataSource rather than assuming that the primary
DataSource was always created via auto-configuration.

See gh-25643
4 years ago
Phillip Webb 6e92daa0a0 Change Kafka cleanup.on-shutdown default to false
Align our property with the recently changed spring-kafka default.

Closes gh-25730
4 years ago
Scott Frederick e4fa39df01 Fail fast when finalName is misconfigured
When the `finalName` parameter is incorrectly set in the Spring Boot
Maven plugin configuration instead of in the `build` configuration, the
repackaged and original archive files are not named as expected. Prior
to this commit, the image building goal would detect this error
condition and throw an exception late in the process of creating the
build container, leaving the container in an unstable state. This
commit changes the image building goal to detect this condition early,
before attempting to create the container.

Fixes gh-25590
4 years ago
Andy Wilkinson 0d7a60f8cf Upgrade to Spring AMQP 2.3.6
Closes gh-25647
4 years ago
Andy Wilkinson 5005bd3ded Upgrade to Spring Kafka 2.6.7
Closes gh-25578
4 years ago
Stephane Nicoll 54e7d7f060 Promote ConnectionFactoryBuilder to the "spring-boot" module
Closes gh-25492
4 years ago
Stephane Nicoll 8808d5e4c0 Polish "Support sending metrics to InfluxDB v2"
See gh-25721
4 years ago
Tommy Ludwig 8eb73bcf01 Support sending metrics to InfluxDB v2
See gh-25721
4 years ago
Stephane Nicoll 6f9352bda9 Fix description of management.metrics.export.influx.db
Closes gh-25723
4 years ago
Stephane Nicoll 91c3c7276b Merge branch '2.4.x'
Closes gh-25725
4 years ago
Stephane Nicoll 42994349fe Merge branch '2.3.x' into 2.4.x
Closes gh-25724
4 years ago
Stephane Nicoll 446e838b1b Fix description of management.metrics.export.influx.db
Closes gh-25723
4 years ago
Stephane Nicoll 2f1ee94321 Upgrade to Spring Data 2021.0.0-M5
Close gh-25548
4 years ago
Stephane Nicoll 83ae2df42f Upgrade to Lettuce 6.1.0.RC1
Closes gh-25722
4 years ago
Stephane Nicoll 606c871d4a Upgrade to Spring Data 2020.0.6
Closes gh-25547
4 years ago
Stephane Nicoll 052624ffb2 Upgrade to Lettuce 6.0.3.RELEASE
Closes gh-25720
4 years ago
Stephane Nicoll a8667daf52 Upgrade to Kotlin Coroutines 1.4.3
Closes gh-25719
4 years ago
Andy Wilkinson 67545cf4f1 Polish 4 years ago
Andy Wilkinson 7ef9ca02c1 Merge branch '2.4.x'
Closes gh-25718
4 years ago
Andy Wilkinson 758a2ee7ca Don't pass null exception translation result into jOOQ
Closes gh-25717
4 years ago
Andy Wilkinson 2adf3f836c Merge branch '2.4.x' 4 years ago
Andy Wilkinson c815195f13 Polish 4 years ago
Andy Wilkinson 36c72cb6ef Merge branch '2.4.x'
Closes gh-25716
4 years ago
Andy Wilkinson 5595fd4017 Merge branch '2.3.x' into 2.4.x
Closes gh-25715
4 years ago
Andy Wilkinson 0e0418546b Test spring-boot:build-image when repackage is also invoked
Closes gh-25714
4 years ago
Andy Wilkinson 68e5a107cc Revert "Merge branch '2.4.x'"
This reverts commit 5488b8cb46, reversing
changes made to dee0df5c53.

See gh-25701
4 years ago
Andy Wilkinson ed4e419b0c Revert "Merge branch '2.3.x' into 2.4.x"
This reverts commit eaa510872a, reversing
changes made to 3e69522e2d.

See gh-25700
4 years ago
Andy Wilkinson ae2ff7849b Revert "Fail fast when finalName is misconfigured"
This reverts commit 263b7c20e4.

See gh-25590
4 years ago
Stephane Nicoll eb406867ea Polish "Upgrade to Micrometer 1.7.0-M1"
See gh-25707
4 years ago
Jonatan Ivanov 7c5e0505d8 Upgrade to Micrometer 1.7.0-M1
See gh-25707
4 years ago
Scott Frederick 5488b8cb46 Merge branch '2.4.x'
Closes gh-25701
4 years ago
Scott Frederick eaa510872a Merge branch '2.3.x' into 2.4.x
Closes gh-25700
4 years ago
Scott Frederick 263b7c20e4 Fail fast when finalName is misconfigured
When the `finalName` parameter is incorrectly set in the Spring Boot
Maven plugin configuration instead of in the `build` configuration, the
repackaged and original archive files are not named as expected. Prior
to this commit, the image building goal would detect this error
condition and throw an exception late in the process of creating the
build container, leaving the container in an unstable state. This
commit changes the image building goal to detect this condition early,
before attempting to create the container.

Fixes gh-25590
4 years ago
Andy Wilkinson dee0df5c53 Merge branch '2.4.x'
Closes gh-25703
4 years ago
Andy Wilkinson 3e69522e2d Merge branch '2.3.x' into 2.4.x
Closes gh-25702
4 years ago
Andy Wilkinson f823bbb9b2 Upgrade to Spring Asciidoctor Extensions 0.5.1
Closes gh-25558
4 years ago
Andy Wilkinson 21c7df9e49 Upgrade to Spring WS 3.1.0-M2
Closes gh-25694
4 years ago
Andy Wilkinson b1f5f34617 Merge branch '2.4.x'
Closes gh-25693
4 years ago
Andy Wilkinson 2560f261cd Merge branch '2.3.x' into 2.4.x
Closes gh-25692
4 years ago
Andy Wilkinson a832cc9ccd Polish "Improve error message when no resources exist at a script location"
See gh-25620
4 years ago
Yuta Saito 42841b895f Improve error message when no resources exist at a script location
See gh-25620
4 years ago
Andy Wilkinson 226ee61dea Create exception reporters when needed so they pick up current state
Fixes gh-25691
4 years ago
Andy Wilkinson 19ad19a10b Upgrade to Undertow 2.2.5.Final
Closes gh-25688
4 years ago
Andy Wilkinson ab45b41005 Upgrade to Tomcat 9.0.44
Closes gh-25687
4 years ago
Andy Wilkinson 69a7f846d1 Upgrade to Sun Mail 1.6.6
Closes gh-25686
4 years ago
Andy Wilkinson 4096a85825 Upgrade to Spring WS 3.1.0-M1
Closes gh-25685
4 years ago
Andy Wilkinson 12bab7399b Upgrade to Solr 8.8.1
Closes gh-25684
4 years ago
Andy Wilkinson 66a2603f10 Upgrade to SnakeYAML 1.28
Closes gh-25683
4 years ago
Andy Wilkinson d5099e7c3f Upgrade to SendGrid 4.7.2
Closes gh-25682
4 years ago
Andy Wilkinson 8dbe8a2539 Upgrade to Rabbit AMQP Client 5.11.0
Closes gh-25681
4 years ago
Andy Wilkinson 0991a26ae2 Upgrade to R2DBC Bom Arabba-SR9
Closes gh-25680
4 years ago
Andy Wilkinson 1837429f6a Upgrade to Postgresql 42.2.19
Closes gh-25679
4 years ago
Andy Wilkinson b1b57d225f Upgrade to Netty 4.1.60.Final
Closes gh-25678
4 years ago
Andy Wilkinson 5b8088cedc Upgrade to Neo4j Java Driver 4.2.3
Closes gh-25677
4 years ago
Andy Wilkinson afced0035b Upgrade to MSSQL JDBC 9.2.1.jre8
Closes gh-25676
4 years ago
Andy Wilkinson 17ecf18a15 Upgrade to MongoDB 4.2.2
Closes gh-25675
4 years ago
Andy Wilkinson 2e796f0406 Upgrade to Mockito 3.8.0
Closes gh-25674
4 years ago
Andy Wilkinson 8ee9da36f1 Upgrade to Micrometer 1.6.5
Closes gh-25673
4 years ago
Andy Wilkinson 731f867d54 Upgrade to Log4j2 2.14.1
Closes gh-25672
4 years ago
Andy Wilkinson 7d340035fd Upgrade to Kotlin Coroutines 1.4.3
Closes gh-25671
4 years ago
Andy Wilkinson a6909c6143 Upgrade to jOOQ 3.14.8
Closes gh-25669
4 years ago
Andy Wilkinson 0fea72e2ca Upgrade to Jetty Reactive HTTPClient 1.1.6
Closes gh-25668
4 years ago
Andy Wilkinson 8ec21c4a41 Upgrade to Jedis 3.5.2
Closes gh-25667
4 years ago
Andy Wilkinson eaeb4f2d73 Upgrade to Jakarta Mail 1.6.6
Closes gh-25666
4 years ago
Andy Wilkinson ae28a449e5 Upgrade to Jackson Bom 2.12.2
Closes gh-25665
4 years ago
Andy Wilkinson 9675faac07 Upgrade to Infinispan 12.0.2.Final
Closes gh-25664
4 years ago
Andy Wilkinson 082b9ec5e4 Upgrade to HikariCP 4.0.3
Closes gh-25663
4 years ago
Andy Wilkinson 04339b839b Upgrade to Hibernate 5.4.29.Final
Closes gh-25662
4 years ago
Andy Wilkinson 80df0ee70e Upgrade to Hazelcast 4.1.2
Closes gh-25661
4 years ago
Andy Wilkinson 4a75798acc Upgrade to Flyway 7.7.0
Closes gh-25660
4 years ago
Andy Wilkinson 2006444b71 Upgrade to Ehcache3 3.9.2
Closes gh-25659
4 years ago
Andy Wilkinson 9b3f92c29a Upgrade to Dropwizard Metrics 4.1.18
Closes gh-25658
4 years ago
Andy Wilkinson 4c1bd43f92 Upgrade to Couchbase Client 3.1.3
Closes gh-25657
4 years ago
Andy Wilkinson f8cf53ca4b Upgrade to Commons Lang3 3.12.0
Closes gh-25656
4 years ago
Andy Wilkinson 9e83bbbce7 Upgrade to Byte Buddy 1.10.22
Closes gh-25655
4 years ago
Andy Wilkinson bd2099d49e Upgrade to AppEngine SDK 1.9.87
Closes gh-25654
4 years ago
Andy Wilkinson 28ddb7fe65 Upgrade to Nimbus JOSE JWT 9.7
Closes gh-25653
4 years ago
Andy Wilkinson c1e20cc237 Upgrade to OAuth2 OIDC SDK 9.2.2
Closes gh-25652
4 years ago
Andy Wilkinson a0a63de676 Upgrade to Spring Security 5.5.0-M3
Closes gh-25581
4 years ago
Andy Wilkinson 39cf3cd99e Upgrade to Spring HATEOAS 1.3.0-M3
Closes gh-25546
4 years ago
Andy Wilkinson f9db1968bf Upgrade to Micrometer 1.6.5
Closes gh-25543
4 years ago
Andy Wilkinson af23da1dff Upgrade to Spring HATEOAS 1.2.5
Closes gh-25545
4 years ago
Andy Wilkinson ebdb046ca9 Leave jar and war tasks enabled but configured with a classifier
Closes gh-23797
4 years ago
Stephane Nicoll 3f2a069e71 Upgrade to Spring Framework 5.3.5
Closes gh-25542
4 years ago
Stephane Nicoll e100291043 Upgrade to Spring Framework 5.3.5
Closes gh-25541
4 years ago
Stephane Nicoll 2875cd8e25 Upgrade to Reactor 2020.0.5
Closes gh-25540
4 years ago
Stephane Nicoll c8fbbe9eaa Upgrade to Reactor 2020.0.5
Closes gh-25539
4 years ago
Stephane Nicoll b860d3892d Simplify JettyWebServer.getLocalPort
Closes gh-24656
4 years ago
Stephane Nicoll 4fcbfd3e84 Merge branch '2.4.x'
Closes gh-25645
4 years ago
Stephane Nicoll 6b9032b4d3 Document that Java 16 is supported
Closes gh-25527
4 years ago