Commit Graph

4973 Commits

Author SHA1 Message Date
Andy Wilkinson 814369e8b0 Enable graceful shutdown by default
Closes gh-37495
2024-09-19 10:58:53 +01:00
Phillip Webb d7c6589b5e Make `PulsarContainerFactoryCustomizers` package private
See gh-42182
2024-09-18 18:31:40 -07:00
Johnny Lim a0d1c10d8a Polish
See gh-42340
2024-09-18 11:19:59 +02:00
Stéphane Nicoll d6bfdbd90e Upgrade to Flyway 10.18.0
Closes gh-42295
2024-09-13 15:18:06 +02:00
Phillip Webb dab5326f59 Merge branch '3.3.x'
Closes gh-42286
2024-09-12 18:44:42 -07:00
Phillip Webb a405c42006 Merge branch '3.2.x' into 3.3.x
Closes gh-42285
2024-09-12 18:43:54 -07:00
Phillip Webb 03e7be3ccf Document that spring.jmx.enabled is not for third-party libraries
Closes gh-42272
2024-09-12 18:35:57 -07:00
Moritz Halbritter ce01dbbad4 Merge branch '3.3.x'
Closes gh-42280
2024-09-12 14:29:59 +02:00
Moritz Halbritter 4e3360560a Merge branch '3.2.x' into 3.3.x
Closes gh-42279
2024-09-12 14:29:49 +02:00
Moritz Halbritter 206c28704f Put registration id in validation error message
Closes gh-42278
2024-09-12 14:19:03 +02:00
Phillip Webb 8628f7334f Ensure `@AutoConfigureTestDatabase` does not replace test databases
Update `@AutoConfigureTestDatabase` support so that by default test
databases are not replaced.

Fixes gh-35253
2024-09-11 21:01:54 -07:00
Andy Wilkinson ee48e83153 Upgrade to Flyway 10.17.3
Closes gh-42218
2024-09-11 11:56:24 +01:00
Stéphane Nicoll 5b25a37a36 Polish "Add Pulsar container factory customizer infrastructure"
See gh-42182
2024-09-10 12:22:44 +02:00
Chris Bono 5cbe0e84f9 Add Pulsar container factory customizer infrastructure
This commit adds the ability for users to customize the auto-configured
Spring for Apache Pulsar message container factories. Each container
factory holds a set of container properties that is a common target for
users to configure. Allowing the customization of these properties
prevents a rapid increase of configuration properties.

See gh-42182
2024-09-10 12:22:44 +02:00
Phillip Webb 72588fcda7 Provide support for deprecated auto-configuration classes
Support `AutoConfiguration.replacements` file that can be placed
alongside an `AutoConfiguration.imports` to replace deprecated
auto-configurations.

Closes gh-14860
2024-09-09 20:06:22 -07:00
Phillip Webb ddd0d898c2 Polish 2024-09-09 19:22:06 -07:00
Stéphane Nicoll c591fab618 Merge branch '3.3.x'
Closes gh-42191
2024-09-09 15:05:25 +02:00
Stéphane Nicoll 7b6997a9c6 Merge branch '3.2.x' into 3.3.x
Closes gh-42190
2024-09-09 15:04:45 +02:00
Stéphane Nicoll aef56bceb9 Replace RFC 7807 by RFC 9457 in documentation
This commit updates all references to RFC 7807 by RFC 9457 since the
former is now obsolete.

Closes gh-41260
2024-09-09 14:59:21 +02:00
Andy Wilkinson cbc732832b Use EnableConfigurationProperties to define MessageSourceProperties
Closes gh-42181
2024-09-09 11:34:00 +01:00
Stéphane Nicoll 3651ff87cd Reinstate auto-configuration support for embedded ActiveMQ
This commit restores auto-configuration for using an Embedded broker
with ActiveMQ classic.

Contrary to its 2.7.x version, "spring-boot-starter-activemq" no longer
adds the broker for consistency with Artemis, and to keep the existing
3.x behavior. Rather than "inMemory", a "s.a.embedded.enabled"
property has been reintroduced that matches the name used by Artemis.

The documentation has been updated to mention that the broker
dependency must be added to use it.

Closes gh-38404
2024-09-06 11:34:35 +02:00
Andy Wilkinson ac4c24e450 Polish "Add config prop for Spring Data Web's serialization mode"
See gh-39797
2024-09-06 09:41:38 +01:00
Yanming Zhou 81c903cde7 Add config prop for Spring Data Web's serialization mode
See gh-39797
2024-09-06 09:41:15 +01:00
Vedran Pavic 4eba42f6dd Improve Pulsar listener container concurrency configuration
This is a follow-up to gh-42062 that utilizes newly introduced
`concurrency` property in `PulsarContainerProperties` to simplify
auto-configuration support for Pulsar listener container concurrency.

See: https://github.com/spring-projects/spring-pulsar/issues/820

See gh-42120
2024-09-05 14:11:26 +01:00
Chris Bono 62ef81b5c8 Add subscription name to Pulsar mapped config props
The subscription name config prop was not being set on the Pulsar
listener container properties. This commit adds the subscription
name to the Pulsar property mappers.

See gh-42067
2024-09-05 13:41:07 +01:00
Andy Wilkinson 23ad50ee60 Start building against Spring Pulsar 1.2.0 snapshots
See gh-42147
2024-09-04 16:22:10 +01:00
Phillip Webb b05336d218 Merge branch '3.3.x' 2024-09-03 21:05:05 -07:00
Phillip Webb 599f1f1a9c Merge branch '3.2.x' into 3.3.x 2024-09-03 21:04:36 -07:00
Phillip Webb f3645bba13 Update copyright year of changed files 2024-09-03 21:04:26 -07:00
Vedran Pavic ddf7af7ce3 Add support for configuring Pulsar listener container concurrency
Add a configuration property that allows users to configure Pulsar
message listener container concurrency.

See gh-42062
2024-09-03 21:03:27 -07:00
Vedran Pavic aa40c0fec0 Add support for configuring Pulsar client IO and listener threads
Add configuration properties that allow users to configure number
of IO threads and listener threads used by the Pulsar client.

See gh-42052
2024-09-01 20:07:27 -07:00
Scott Frederick e7faca3bbb Add support for Testcontainer Redis
Add support for the official `com.redis:testcontainers-redis` container.

See gh-41450
2024-08-29 19:23:40 -07:00
Phillip Webb 926b0ec1c8 Merge branch '3.3.x'
Closes gh-42060
2024-08-29 15:06:26 -07:00
Phillip Webb a09af7ebcf Merge branch '3.2.x' into 3.3.x
Closes gh-42059
2024-08-29 15:06:12 -07:00
Phillip Webb 10855056cc Support blank MongoDB 'replica-set-name' properties
Update `null` checks to `StringUtils.hasText` to allow the
`replica-set-name' property to be overridden with an empty string.

Fixes gh-42055
2024-08-29 15:05:33 -07:00
Phillip Webb c3ed545ffd Merge branch '3.3.x'
Closes gh-41995
2024-08-21 18:24:17 -07:00
Phillip Webb 05b73ceeec Call getErrorAttributes() only once
Refine the fix introduced in commit 60b7e6cf23 so that the
`getErrorAttributes()` method is not called multiple times. If the
status is missing, the `DefaultErrorWebExceptionHandler` will now
call an internal `DefaultErrorAttributes` instance in order to obtain
the actual status result.

Fixes gh-41732
2024-08-21 18:24:08 -07:00
Moritz Halbritter 0c33768746 Merge branch '3.3.x'
Closes gh-41977
2024-08-21 13:11:20 +02:00
Moritz Halbritter 516c764de0 Merge branch '3.2.x' into 3.3.x
Closes gh-41976
2024-08-21 13:05:36 +02:00
Moritz Halbritter 5ee522598f Explain that enabling virtual threads disables traditional thread pools
Closes gh-41937
2024-08-21 11:58:53 +02:00
Andy Wilkinson 2ecb4ebd49 Ignore non-default candidates in type-based matching
Closes gh-22403
2024-08-20 14:36:12 +01:00
Andy Wilkinson 8183c5b23d Ignore non-autowire candidates in type-based matching
Closes gh-41526
2024-08-20 14:36:12 +01:00
Andy Wilkinson a70ff35dba Improve property defaults
See gh-41851
2024-08-20 11:21:26 +01:00
Andy Wilkinson 3bbbef78be Polish "Add support for Pulsar default tenant/namespace"
See gh-41851
2024-08-20 11:08:07 +01:00
Chris Bono 98da3aa27c Add support for Pulsar default tenant/namespace
This commit allows Pulsar users to configure a default tenant
and/or namespace to be used when producing or consuming messages
to topic URLs that are not fully-qualified.

See gh-41851
2024-08-20 11:08:06 +01:00
Stéphane Nicoll 5c76189583 Merge branch '3.3.x'
Closes gh-41961
2024-08-20 11:58:05 +02:00
Stéphane Nicoll d07eee4af3 Merge branch '3.2.x' into 3.3.x
Closes gh-41960
2024-08-20 11:57:50 +02:00
Piyal Ahmed 016e70cbd2 Polish
See gh-41957
2024-08-20 11:44:12 +02:00
Phillip Webb 450e31b42e Merge branch '3.3.x' 2024-08-19 16:47:31 -07:00
Phillip Webb 1d337b7c76 Merge branch '3.2.x' into 3.3.x 2024-08-19 16:46:51 -07:00
Phillip Webb f1987e6f8b Update copyright year of changed files 2024-08-19 16:45:34 -07:00
Stéphane Nicoll 6fd1f0f1f5 Avoid using JRE.OTHER for Infinispan tests
See gh-41909
2024-08-19 14:38:54 +02:00
Stéphane Nicoll b43cd51f3c Upgrade to Flyway 10.17.1
Closes gh-41924
2024-08-19 11:16:24 +02:00
Andy Wilkinson 8e20aaca7c Merge branch '3.3.x'
Closes gh-41923
2024-08-19 09:59:40 +01:00
Andy Wilkinson 8968d9e98d Merge branch '3.2.x' into 3.3.x
Closes gh-41922
2024-08-19 09:59:20 +01:00
Andy Wilkinson bc1920d6bb Use a JRE range to control when Artemis tests are enabled
Closes gh-41909
2024-08-19 09:58:51 +01:00
Scott Frederick add3d87ea1 Support Couchbase authentication using client certificates
Closes gh-41520
2024-08-14 14:40:06 -05:00
Moritz Halbritter 46150bae89 Merge branch '3.3.x'
Closes gh-41858
2024-08-14 17:20:59 +02:00
Moritz Halbritter 2a84fe5760 Merge branch '3.2.x' into 3.3.x
Closes gh-41857
2024-08-14 16:47:52 +02:00
Moritz Halbritter 1d45016d8c Upgrade to spring-javaformat 0.0.43
Closes gh-41853
2024-08-14 16:32:41 +02:00
Scott Frederick db70aa1a5f Use Spring Boot PEM parser in SAML2 signing auto-configuration
Closes gh-41567
2024-08-13 14:51:44 -05:00
Stéphane Nicoll 24d14743c4 Revert "Adapt to framework change that makes CacheControl immutable"
This reverts commit 7343254090 as the
change in Framework has been reverted as well.
2024-08-12 17:50:08 +02:00
Stéphane Nicoll 7343254090 Adapt to framework change that makes CacheControl immutable
See https://github.com/spring-projects/spring-framework/pull/33366
2024-08-12 14:46:37 +02:00
Stéphane Nicoll a8c10a8989 Start building against Spring Security 6.4.0-M2 snapshots
See gh-41757
2024-08-09 15:20:49 +02:00
Stéphane Nicoll ccce9af047 Merge branch '3.3.x'
Closes gh-41714
2024-08-07 17:58:14 +02:00
Stéphane Nicoll 8f4ea963d0 Merge branch '3.2.x' into 3.3.x
See gh-41711
2024-08-07 17:57:54 +02:00
Stéphane Nicoll d5c0e09eca Merge branch '3.2.x' into 3.3.x
See gh-41711
2024-08-07 17:52:07 +02:00
Stéphane Nicoll 1246cab30b Disable Artemis tests on Java 23
Artemis does not work on Java 23, this commit therefore disables those
tests when running against a Java version higher than 22.

See https://issues.apache.org/jira/browse/ARTEMIS-4975

Unfortunately, the version of JUnit that we use has no value for Java
23, so we have to use OTHER for that purpose.
2024-08-07 17:33:17 +02:00
Stéphane Nicoll a6567c7d47 Disable Infinispan tests on Java 23
Infinispan 14 does not work on Java 23, an upgrade to 15 is required.
This commit therefore disables those tests when running against a Java
version higher than 22.

Unfortunately, the version of JUnit that we use has no value for Java
23, so we have to use OTHER for that purpose.
2024-08-07 17:32:52 +02:00
Moritz Halbritter 4fcd998c4d Fix IntegrationAutoConfigurationTests for Java 21 2024-08-06 11:47:44 +02:00
Moritz Halbritter abe3ee6831 Merge pull request #41695 from facewise
* pr/41695:
  Make IntegrationTaskSchedulerConfiguration virtual threads aware

Closes gh-41695
2024-08-06 09:33:32 +02:00
facewise 7872d8ab41 Make IntegrationTaskSchedulerConfiguration virtual threads aware
See gh-41695
2024-08-06 09:33:17 +02:00
Stéphane Nicoll 40300908ea Include vendor properties in auto-configured EntityManagerFactoryBuilder
This commit moves the setup of vendor properties (e.g. Hibernate) from
the auto-configured LocalContainerEntityManagerFactoryBean to the
auto-configured EntityManagerFactoryBuilder. This way, custom use of
the latter retains additional auto-configuration logic such as the
naming strategy and DDL mode to use.

Closes gh-15318
2024-08-05 14:10:07 +02:00
Stéphane Nicoll c7e29b7b1b Polish 2024-08-05 08:36:41 +02:00
Stéphane Nicoll efaebb1351 Document unsupported Freemarker properties with WebFlux
This commit updates the configuration metadata and the reference guide
to mention that certain FreeMarker features are not available with
WebFlux.

This stems mostly from the fact that the WebFlux integration is not
based on a AbstractTemplateView.

Closes gh-11199
2024-08-02 15:06:35 +02:00
Stéphane Nicoll a2fafa112f Add support for customizing FreeMarker variables
This commit updates the auto-configuration to allow custom FreeMarker
variables to be provided programmatically. As these variables are
usually objects, they cannot be specified via properties.

Closes gh-8965
2024-08-02 11:52:27 +02:00
Stéphane Nicoll 788417df7f Remove duplicate metadata for Enum default values
See gh-7562
2024-08-01 15:43:22 +02:00
Stéphane Nicoll 518bc69bb7 Merge branch '3.3.x'
Closes gh-41684
2024-08-01 14:56:22 +02:00
Stéphane Nicoll 218e7aa993 Merge branch '3.2.x' into 3.3.x
Closes gh-41683
2024-08-01 14:56:05 +02:00
Stéphane Nicoll 815ab7df94 Add missing default value for Pulsar properties
Closes gh-41682
2024-08-01 14:54:28 +02:00
Andy Wilkinson d431177f7d Merge branch '3.3.x'
Closes gh-41681
2024-08-01 13:31:44 +01:00
Andy Wilkinson 7f18952d87 Merge branch '3.2.x' into 3.3.x
Closes gh-41678
2024-08-01 13:30:58 +01:00
Andy Wilkinson f6334ca186 Make reactive Elastic repositories back off without Reactor
Fixes gh-41672
2024-08-01 13:30:14 +01:00
Brian Clozel 1738e0c743 Reply with HTTP 415 for unsupported GraphQL content-type
Prior to this commit, the configured GraphQL routes would reply with an
HTTP 404 status when a POST request is sent with an unsupported content
type, such as "text/plain". While such requests are not supported in the
first place, we should help developers and let them know that the
content type sent is the problem.

This commit configures new routes that reply with HTTP 415 "Unsupported
Media Type" for these cases.

Closes gh-41675
2024-08-01 14:29:45 +02:00
Stéphane Nicoll 97c516a7aa Merge branch '3.3.x'
Closes gh-41673
2024-08-01 13:49:28 +02:00
Stéphane Nicoll 58ff683a0f Add missing default value for server.error.include-path
Closes gh-41667
2024-08-01 13:43:47 +02:00
Phillip Webb fb72345491 Polish `JsonWriter` API 2024-07-30 13:06:48 +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
Andy Wilkinson 5f666eec5b Reduce warnings reported by Eclipse
Closes gh-41598
2024-07-25 14:55:00 +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
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
Andy Wilkinson 64a0cf8275 Merge branch '3.3.x'
Closes gh-41544
2024-07-17 12:26:13 +01:00
Andy Wilkinson 1a6760e21d Polish "Add configuration property to allow multiple issuers"
See gh-41355
2024-07-17 12:03:34 +01:00
shenqicheng b0b97fb1d2 Add configuration property to allow multiple issuers
See gh-41355
2024-07-17 11:59:14 +01:00
Stéphane Nicoll fc2890d1cd Use native connection factory with message listener containers
This commit updates the auto-configuration to use the native connection
factory for configuring message listener containers. Previously, the
connection factory that could have been wrapped in a caching connection
factory was used.

While using a caching connection factory is suitable for sending
messages (i.e. JmsTemplate usage), it isn't for message listeners as
they need to own the connection for local recovery purposes.

Closes gh-39816
2024-07-17 10:41:12 +02:00
Stéphane Nicoll d26ce6cb52 Merge branch '3.3.x' 2024-07-17 09:47:20 +02:00
Stéphane Nicoll f7780b4fef Polish 2024-07-17 09:46:25 +02:00