Commit Graph

5386 Commits

Author SHA1 Message Date
Phillip Webb 7a4e071709 Polish 2024-12-03 14:45:25 -08:00
Phillip Webb 91778e9f96 Merge branch '3.3.x'
Closes gh-43359
2024-12-02 19:05:21 -08:00
Phillip Webb b340c855c0 Prevent H2 console from causing early DataSource initialization
Update `H2ConsoleAutoConfiguration` so that DataSource connection
logging occurs outside of the `ServletRegistrationBean`.

Fixes gh-43337
2024-12-02 19:05:16 -08:00
Moritz Halbritter ff9fde0ef4 Polish "Make UserDetailsServiceAutoConfiguration conditional on servlet app"
See gh-43334
2024-12-02 13:40:51 +01:00
BenchmarkingBuffalo c5d41f1469 Make UserDetailsServiceAutoConfiguration conditional on servlet app
See gh-43334
2024-12-02 13:22:07 +01:00
Johnny Lim 859c235a95 Polish
See gh-43316
2024-11-29 10:35:11 +01:00
Andy Wilkinson 512584d990 Merge branch '3.3.x'
Closes gh-43325
2024-11-29 09:18:28 +00:00
Stefano Cordio 26b1d74470 Fix link to proxyBeanMethods in @AutoConfiguration javadoc
See gh-43323
2024-11-29 09:17:27 +00:00
Stéphane Nicoll d8c41c2583 Defensively unwrap CacheConnectionFactory
This commit refines the optimization introduced in gh-39816 to only
unwrap our own caching connection factory. The more advanced unwrap
algorithm is still available, but opt-in only.

Unwrapping more aggressively may break use cases where the wrapped
ConnectionFactory is required, i.e. for transactional purposes.

Closes gh-43277
2024-11-26 19:56:32 +01:00
Andy Wilkinson 32433e84f3 Merge branch '3.3.x'
Closes gh-43270
2024-11-22 15:46:38 +00:00
Andy Wilkinson 109e731c83 Revert "Add `@ConditionalOnMissingBean` for `JobRepository`"
This reverts commit 73fc351d71.

See gh-43236
2024-11-21 13:31:20 +00:00
Phillip Webb 73fc351d71 Add `@ConditionalOnMissingBean` for `JobRepository`
Update `BatchAutoConfiguration` so that the `JobRepository` is not
defined when the user provides an appropriate bean.

Fixes gh-43236
2024-11-20 21:57:52 -08:00
Phillip Webb 3cae5c27d1 Merge branch '3.3.x' 2024-11-20 20:58:02 -08:00
Yanming Zhou 7fdc9742af Prohibit unnecessary value on `@EnumSource`
See gh-43214
2024-11-18 21:50:35 -08:00
Phillip Webb 26c775eff8 Register `AutoConfigurations` using fully qualified class name
Update `AbstractApplicationContextRunner` and `Configurations` to
allow registration of beans with a specific generated bean name. By
default, no name is generated, however, `AutoConfigurations` has been
updated to use bean names using the fully qualified class name.

The update brings `ApplicationContextRunners` closer the behavior of
a standard Spring Boot application where user `@Configuration` classes
are usually registered with a simple name and auto-configurations are
imported (via an `ImportSelector`) using a fully qualified name.

Fixes gh-17963

Co-authored-by: Stéphane Nicoll <stephane.nicoll@broadcom.com>
Co-authored-by: Andy Wilkinson <andy.wilkinson@broadcom.com>
Co-authored-by: Dmytro Nosan <dimanosan@gmail.com>
2024-11-18 21:37:42 -08:00
Phillip Webb a705402e75 Polish
Co-authored-by: Stéphane Nicoll <stephane.nicoll@broadcom.com>
2024-11-18 21:36:56 -08:00
Phillip Webb 76226f99d8 Merge branch '3.3.x'
Closes gh-43199
2024-11-15 13:27:24 -08:00
Phillip Webb dba395dc0c Merge branch '3.2.x' into 3.3.x
Closes gh-43198
2024-11-15 13:27:17 -08:00
Phillip Webb a20cc3d4e6 Clarify documentation for 'spring.datasource.type'
Closes gh-43193
2024-11-15 13:26:45 -08:00
Moritz Halbritter 70d5756ce5 Polish "Add logger warning if Hikari datasource doesn't have pool suspension configured"
See gh-42937
2024-11-14 11:03:53 +01:00
Stéphane Nicoll 9fb7077402 Upgrade to Neo4j Java Driver 5.26.2
Closes gh-43132
2024-11-13 09:30:35 +09:00
Andy Wilkinson 1e8b23e300 Merge branch '3.3.x'
Closes gh-43072
2024-11-08 11:04:29 +00:00
Andy Wilkinson 1ae9b8ea1b Merge branch '3.2.x' into 3.3.x
Closes gh-43071
2024-11-08 10:55:52 +00:00
Andy Wilkinson 5d63335a5c Polish "Use constants for well-known scope names"
See gh-43065
2024-11-08 10:53:11 +00:00
Yanming Zhou 03841b1229 Use constants for well-known scope names
See gh-43065
2024-11-08 10:01:19 +00:00
Stéphane Nicoll fdf24c6caa Merge branch '3.3.x'
Closes gh-42976
2024-11-02 20:25:35 +09:00
Stéphane Nicoll a224c8188c Fix copyright year of updated file
See gh-42974
2024-11-02 20:21:19 +09:00
Tran Ngoc Nhan 9e92bfe906 Polish
See gh-42974
2024-11-02 20:20:06 +09:00
Phillip Webb 06f0b91429 Add @Order to WebSocketMessageConverterConfiguration
Add `@Order` to `WebSocketMessageConverterConfiguration` so that custom
`WebSocketMessageBrokerConfigurer` implementations can be added before
or after ours.

Fixes gh-42924
2024-11-01 17:49:38 -07:00
Dmytro Nosan 85b1c567f1 Support timeout property for GraphQL over SSE
See gh-42966
2024-11-01 14:13:32 -07:00
Andy Wilkinson 2b3c93ffda Consider factory beans when finding candidates
Previously, if a bean name was a factory dereference its definition
would not be found. When the definition wasn't found it was assumed
that the bean was an autowire candidate and a default candidate.
If this, in fact, was not the case, @ConditionalOnMissingBean would
not match when it should have done and @ConditionalOnBean would
match when it should not had done.

This commit updates the bean-based conditions to correctly consider
factory beans so that whether or not they are a candidate can be
evaluated correctly.

Fixes gh-42970
2024-11-01 15:19:49 +00:00
Andy Wilkinson f4c6aab02b Merge branch '3.3.x'
Closes gh-42945
2024-10-30 10:44:27 +00:00
Andy Wilkinson 53186655f9 Merge branch '3.2.x' into 3.3.x
Closes gh-42944
2024-10-30 10:44:04 +00:00
Andy Wilkinson e8b8584175 Merge branch '3.3.x'
Closes gh-42943
2024-10-30 10:26:19 +00:00
Andy Wilkinson 1ad5fb8638 Merge branch '3.2.x' into 3.3.x
Closes gh-42942
2024-10-30 10:26:04 +00:00
Andy Wilkinson 1c61e59099 Prohibit unnecessary values on @ConditionalOnMissingBean
Closes gh-42941
2024-10-30 10:24:00 +00:00
Andy Wilkinson 00ceb378c4 Polish "Remove unnecessary values from @ConditionalOnMissingBean"
See gh-42933
2024-10-30 10:02:27 +00:00
Yanming Zhou 88d7a1e74a Remove unnecessary values from @ConditionalOnMissingBean
See gh-42933
2024-10-30 10:00:11 +00:00
Andy Wilkinson fbb09cd09c Merge branch '3.3.x'
Closes gh-42926
2024-10-29 14:58:23 +00:00
Andy Wilkinson 87f29f63aa Merge branch '3.2.x' into 3.3.x
Closes gh-42925
2024-10-29 14:57:43 +00:00
Andy Wilkinson b1653708e4 Improve thread-safety of OnClassCondition
Closes gh-41709
2024-10-29 13:26:16 +00:00
Yanming Zhou 46c40b4ddc Polish
See gh-42912
2024-10-29 13:45:40 +09:00
Phillip Webb 24202a0a78 Update copyright year of changed files 2024-10-25 18:21:53 -07:00
Moritz Halbritter 85b1c55bb8 Polish 2024-10-25 13:40:21 +02: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 e6b840004d Support ResourceLoader delegation from ApplicationResourceLoader
Update `ApplicationResourceLoader` to support delegation to another
`ResourceLoader`. The update allows customer resource loaders to be
used when loading SSL resources.

Closes gh-42835
2024-10-22 22:07:42 -07:00
Phillip Webb 65fcf34773 Merge branch '3.3.x'
Closes gh-42840
2024-10-22 19:23:43 -07:00
Phillip Webb dcbf0096d8 Use context class loader when watching SSL resource
Update `BundleContentProperty` to use a provided resource loader when
watching files.

Fixes gh-42468
2024-10-22 19:22:33 -07:00
Phillip Webb fdf7ca9093 Merge branch '3.3.x'
Closes gh-42839
2024-10-22 18:45:19 -07:00
Phillip Webb 499672184c Use context class loader when loading auto-configured SSL bundles
Update `SslAutoConfiguration` to the `ApplicationContext` class loader
when loading SSL resources. Prior to this commit, the thread context
class loader was used to load resources which could be incorrect.
Specifically, when using a `ForkJoinPool` the thread context classloader
defaults to the JRE `AppClassLoader` which does not include uber jar
content.

The underlying `JksSslStoreBundle` class and `PemSslStore.load(...)`
method have been updated so support using a provided `ResourceLoader`.

Fixes gh-42468
2024-10-22 18:43:57 -07:00
Phillip Webb 61fbb12499 Polish 2024-10-22 16:05:51 -07:00
Andy Wilkinson e26c6d6403 Recommend using defaultCandidate=false on qualified beans
Closes gh-42831
2024-10-22 17:49:23 +01:00
Andy Wilkinson ea4b53d6ae Add auto-configuration for an indexed reactive session repository
Closes gh-42604
2024-10-22 13:40:53 +01:00
Andy Wilkinson fc091f7bdd Introduce @BatchTaskExecutor for customizing Batch's task executor
Closes gh-40040
2024-10-22 10:48:34 +01:00
Dmytro Nosan 1796c20017 Add support for ClickHouse in `DatabaseDriver` enum
See gh-42815
2024-10-21 20:34:01 -07:00
Tran Ngoc Nhan fcbf6b0200 Polish
See gh-42798
2024-10-21 13:23:42 +02:00
Phillip Webb 2f5f224559 Merge branch '3.3.x' 2024-10-18 10:49:15 -07:00
Phillip Webb 3481107ff7 Update copyright year of changed files 2024-10-18 10:48:29 -07:00
Phillip Webb 168d82e138 Polish 2024-10-18 10:47:52 -07:00
Andy Wilkinson f5dba49e79 Merge branch '3.3.x'
Closes gh-42790
2024-10-18 15:32:46 +01:00
Andy Wilkinson 7cc03444fb Merge branch '3.2.x' into 3.3.x
Closes gh-42789
2024-10-18 15:32:35 +01:00
Andy Wilkinson 74d13d3a8d Note that max HTTP request head size semantics are server-specific
Closes gh-40798
2024-10-18 15:31:54 +01:00
Moritz Halbritter 44e66ef344 Remove server.tomcat.reject-illegal-header
Closes gh-42731
2024-10-17 14:03:00 +02: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
Moritz Halbritter d8dfe7c1d8 Merge branch '3.3.x'
Closes gh-42727
2024-10-17 10:33:31 +02:00
Moritz Halbritter b203780dcb Document that Tomcat's maxQueueCapacity need to be greater than 0
Closes gh-42726
2024-10-17 10:22:31 +02:00
Phillip Webb 5f84e78854 Add `@author` attribution
See gh-42472
2024-10-16 16:44:16 -07:00
Phillip Webb 06569af789 Polish 'Allow common messages to be specified for message sources'
See gh-42472
2024-10-16 16:42:07 -07:00
Misagh Moayyed 573ccc5007 Allow common messages to be specified for message sources
Extend message source configuration properties and auto-configuration to
support common messages.

See gh-42472
2024-10-16 16:33:42 -07: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
Phillip Webb 0a6d3f312e Polish 2024-10-16 13:08:21 -07:00
Stéphane Nicoll 0c0acb4339 Polish "Use RootBeanDefinition if possible"
This commit adapts code that was using GenericBeanDefinition to use
RootBeanDefinition instead. Spring Framework recommend to use
RootBeanDefinition if it's pre-determined as root bean.

See gh-42611
2024-10-15 09:45:28 +02:00
Yanming Zhou 7427304b3d Use RootBeanDefinition if possible
This commit adapts code that was using GenericBeanDefinition to use
RootBeanDefinition instead. Spring Framework recommend to use
RootBeanDefinition if it's pre-determined as root bean.

See gh-42611
2024-10-15 09:35:56 +02:00
Stéphane Nicoll 13eb3902bf Merge branch '3.3.x'
Closes gh-42684
2024-10-15 09:01:29 +02:00
Stéphane Nicoll f20d83fd07 Merge branch '3.2.x' into 3.3.x
Closes gh-42683
2024-10-15 09:01:21 +02:00
Stéphane Nicoll 55ef77b254 Remove unnecessary call to ex.printStackTrace
Closes gh-42681
2024-10-15 09:00:30 +02:00
Stéphane Nicoll a40ae49a76 Upgrade to Testcontainers 1.20.2
Closes gh-42670
2024-10-14 16:25:57 +02:00
Andy Wilkinson 033b4d89bb fixup! Start building against Spring Authorization Server 1.4.0 snapshots 2024-10-09 19:11:03 +01:00
Andy Wilkinson 2e5bd9fc4a Start building against Spring Security 6.4.0 snapshots
See gh-42568
2024-10-09 19:07:56 +01:00
Andy Wilkinson 11960df595 Start building against Spring Authorization Server 1.4.0 snapshots
See gh-42559
2024-10-09 18:49:05 +01:00
Andy Wilkinson 8d0cfdfe5e Merge branch '3.3.x'
Closes gh-42506
2024-10-03 10:23:09 +01:00
Andy Wilkinson 7b4cd03066 Merge branch '3.2.x' into 3.3.x
Closes gh-42505
2024-10-03 10:18:17 +01:00
Andy Wilkinson 2328c1fe80 Improve javadoc for when bean type to match is inferred
Closes gh-42504
2024-10-03 10:16:27 +01:00
Phillip Webb 58a1b2bea5 Polish 'Add support for 'server.jetty.max-form-key' property'
See gh-42448
2024-10-02 21:25:24 -07:00
qingbozhang 6e885c423f Add support for 'server.jetty.max-form-key' property
Add a new 'server.jetty.max-form-key' property that can be used to
configure Jetty's Handler.setMaxFormKeys(...).

See gh-42448
2024-10-02 21:22:56 -07:00
Phillip Webb 90f375ea3e Dont deduce type for OnBean conditions when annotations are specified
Update `OnBeanCondition` to consider the annotations attribute as well
as the types and names when determining if the bean type can be deduced.

Fixes gh-42484
2024-10-02 15:21:30 -07:00
Andy Wilkinson fae3cd1ca5 Harmonize configuration properties that accept a list of values
Closes gh-42478
2024-10-02 10:56:15 +01:00
Andy Wilkinson 842afa4381 Upgrade to Jackson 2.18.0
Closes gh-42480
2024-10-01 17:23:25 +01:00
Andy Wilkinson 2f42b9cb29 Merge branch '3.3.x'
Closes gh-42491
2024-10-01 17:23:01 +01:00
Andy Wilkinson 26d3b845c5 Merge branch '3.2.x' into 3.3.x
Closes gh-42490
2024-10-01 17:22:11 +01:00
Andy Wilkinson 95665a4b28 Fall back to connection details when configuring Rabbit Streams
Closes gh-42489
2024-10-01 17:20:49 +01:00
Phillip Webb 89f4a8bc7f Polish 2024-09-27 10:29:25 -07:00
Moritz Halbritter a1441804ec Reapply "Configure virtual threads on Undertow if enabled"
This reverts commit 2f99c19f11.

Closes gh-38819
2024-09-27 12:54:42 +02:00
Johnny Lim 3882dcc2fa Polish
See gh-42457
2024-09-27 12:13:36 +02:00
Dmytro Nosan e4f6dff77f Polish HazelcastConnectionDetailsConfiguration
See gh-42459
2024-09-27 11:58:32 +02:00
Moritz Halbritter 33def6d6b4 Polish "Add service connection support for Hazelcast"
See gh-42416
2024-09-26 16:45:26 +02:00
Dmytro Nosan cee7439dbe Add service connection support for Hazelcast
See gh-42416
2024-09-26 14:34:12 +02:00
Dmytro Nosan 4a1676d857 Add support for partitioned cookies
See gh-42316
2024-09-25 15:58:50 +02:00
Phillip Webb 7b3077280c Merge branch '3.3.x'
Closes gh-42441
2024-09-24 14:32:48 -07:00
Phillip Webb 100bedc07d Merge branch '3.2.x' into 3.3.x
Closes gh-42440
2024-09-24 14:29:09 -07:00
Phillip Webb ad72411e2b Apply conventions plugin to all subprojects
Closes gh-42438
2024-09-24 14:26:32 -07:00
Andy Wilkinson 6806276b64 Retain jOOQ configuration bean when used defines a DSLContext bean
Closes gh-42400
2024-09-23 18:31:46 +01:00
Andy Wilkinson 97ff6e2ef1 Merge branch '3.3.x'
Closes gh-42422
2024-09-23 15:24:10 +01:00
Andy Wilkinson 9c6a744fc9 Merge branch '3.2.x' into 3.3.x
Closes gh-42421
2024-09-23 15:23:51 +01:00
Andy Wilkinson 2aea7caf36 Remove use of reflection in Artemis connection factory creation
Fixes gh-42414
2024-09-23 14:08:35 +01:00
Stéphane Nicoll e930a963ad Polish "Add option for configuring max messages per task"
See gh-42341
2024-09-19 14:19:01 +02:00
Dmytro Nosan 09b57eff76 Add option for configuring max messages per task
See gh-42341
2024-09-19 14:12:24 +02:00
Andy Wilkinson 627c691616 Document the reason for deprecation of clean-on-validation-error
See gh-42295
2024-09-19 11:22:08 +01:00
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
Andy Wilkinson a61abb0d74 Merge branch '3.3.x'
Closes gh-41522
2024-07-16 12:05:21 +01:00
Andy Wilkinson f062c46154 Merge branch '3.2.x' into 3.3.x
Closes gh-41521
2024-07-16 12:05:02 +01:00
Andy Wilkinson 1cc7498c9a Add property for Integration's default endpoint timeout
Fixes gh-41477
2024-07-16 11:22:27 +01:00
Andy Wilkinson 350a70199c Merge branch '3.3.x'
Closes gh-41519
2024-07-16 08:48:05 +01:00
Andy Wilkinson 754e71d265 Merge branch '3.2.x' into 3.3.x
Closes gh-41518
2024-07-16 08:47:49 +01:00
Andy Wilkinson 17d6f90468 Document types to which format properties apply
Closes gh-41482
2024-07-16 08:47:30 +01:00
Andy Wilkinson fba6f29bc8 Merge branch '3.3.x'
Closes gh-41505
2024-07-15 15:35:47 +01:00
Andy Wilkinson 999d99e655 Merge branch '3.2.x' into 3.3.x
Closes gh-41504
2024-07-15 15:35:31 +01:00
Andy Wilkinson d63e3c3b53 Rethrow failure on main thread
Previously, if a failure occurred when evaluating conditions on a
separate thread, an NPE would occur on the main thread as the
expected array of outcomes was null.

This commit avoids the NPE and the lack of error reporting by
rethrowing on the main thread any failure that occurs on the
separate thread that's spawned to parallelize the evaluation.

Closes gh-41492
2024-07-15 15:09:57 +01:00
Phillip Webb 89f3052f6e Migrate `PulsarPropertiesMapper` to use `JsonWriter`
Closes gh-41490
2024-07-15 11:45:41 +01:00
Brian Clozel c693b2bd8c Add support for webjars-locator-lite
This is a follow-up to spring-projects/spring-framework#27619
This commit adds support for "org.webjars:webjars-locator-lite" for
enabling the statis resources chain.

As of this commit, support for "org.webjars:webjars-locator-core" is
deprecated for obvious performance reasons.

Closes gh-40146
2024-07-12 19:17:17 +02:00
Andy Wilkinson 8676cc6256 Deprecate Gson lenient property and introduce strictness replacement
Closes gh-41430
2024-07-12 10:55:51 +01:00
Andy Wilkinson 870739955b Polish "Group Kafka back-off properties"
See gh-41335
2024-07-11 13:09:39 +01:00
Travis Riegler 14c9893371 Group Kafka back-off properties
Kafka back-off policy properties "delay", "max-delay", "multiplier",
and "random-back-off" are now defined in a common "backoff" group:

- spring.kafka.retry.topic.backoff.delay
- spring.kafka.retry.topic.backoff.maxDelay
- spring.kafka.retry.topic.backoff.multiplier
- spring.kafka.retry.topic.backoff.random

See gh-41335
2024-07-11 13:09:39 +01:00
Andy Wilkinson d07fe47102 Merge branch '3.3.x'
Closes gh-41447
2024-07-11 13:09:26 +01:00
Andy Wilkinson 784c8d2df4 Avoid duplicate junit-platform.properties files caused by Kafka
Gradle doesn't support excluding a dependency that's declared with a
classifier. Instead, this commit replaces the test-qualified
kafka-server-common dependency with the plain dependency. The plain
dependency was already present so this is equivalent to excluding
the test-qualified dependency.

Closes gh-41446
2024-07-11 13:08:58 +01:00
Andy Wilkinson 375b3b16a0 Remove APIs that were deprecated for removal in 3.4.0
Closes gh-41435
2024-07-10 13:31:21 +01:00
Andy Wilkinson 6cb35f7209 Adapt to changes in Oracle Database 23.4.0.24.05
See gh-41147
2024-07-09 18:48:31 +01:00
Andy Wilkinson e55a730ea0 Upgrade to Gson 2.11.0
Closes gh-41407
2024-07-09 16:06:57 +01:00
Andy Wilkinson d96cc210ae Upgrade to Artemis 2.35.0
Closes gh-41400
2024-07-09 16:06:53 +01:00
Johnny Lim 3aee73004a Polish RabbitTemplateConfigurer allowed-list-patterns
Closes gh-41349
2024-07-08 15:35:48 -05:00
Johnny Lim 97956165dc Polish RabbitTemplateConfigurer allowed-list-patterns
See gh-41323
2024-07-08 15:24:30 -05:00
Moritz Halbritter cf2b08b8a6 Polish "Add SslBundle support to MailSender"
See gh-40037
2024-07-04 15:42:24 +02:00
Rui Figueira e7424eacf8 Add SslBundle support to MailSender
See gh-40037
2024-07-04 15:13:15 +02:00
Stéphane Nicoll 156237227c Migrate MockMvc tests to MockMvcTester
See gh-41198
2024-07-03 15:09:10 +02:00
Moritz Halbritter 7c3576bda8 Polish "Add ProxyConnectionFactoryCustomizer"
See gh-40555
2024-06-28 14:41:04 +02:00
Andy Wilkinson 1dfb4c9719 Polish "Add a customizer for Lettuce's ClientOptions"
See gh-40484
2024-06-27 16:37:44 +01:00
임수현 c517664f08 Add a customizer for Lettuce's ClientOptions
See gh-40484
2024-06-27 16:29:36 +01:00
Andy Wilkinson 7e04ac2967 Polish "Make it easier to override RequestToViewNameTranslator bean"
See gh-40874
2024-06-27 15:29:37 +01:00
rohit patidar 062ed4ba2b Make it easier to override RequestToViewNameTranslator bean
See gh-40874
2024-06-27 15:17:49 +01:00
Andy Wilkinson 5b7365b63b Merge branch '3.3.x'
Closes gh-41258
2024-06-27 10:25:32 +01:00
Andy Wilkinson b0d4f1d356 Merge branch '3.2.x' into 3.3.x
Closes gh-41257
2024-06-27 10:16:36 +01:00
Andy Wilkinson 654016af7f Move Docker-related test support into a separate module
See gh-41228
2024-06-26 19:47:35 +01:00
Andy Wilkinson 9f166f2c85 Update spring-boot-autoconfigure to use docker-test plugin
See gh-41228
2024-06-26 19:46:33 +01:00
Andy Wilkinson 0ad5aa7400 Enable customization of properties used to create JCache CacheManager
Closes gh-39350
2024-06-24 15:07:31 +01:00
Andy Wilkinson 5920b27b57 Upgrade to Flyway 10.15.0
Closes gh-41217
2024-06-24 14:39:23 +01:00
Andy Wilkinson 6bdba8e69e Revert "Enable customization of properties used to create JCache CacheManager"
This reverts commit 622c9ed882 that was
pushed accidentally.
2024-06-24 12:03:23 +01:00
Andy Wilkinson 94336ab314 Merge branch '3.3.x'
Closes gh-41215
2024-06-24 11:52:03 +01:00
Andy Wilkinson adb9747652 Merge branch '3.2.x' into 3.3.x
Closes gh-41214
2024-06-24 11:51:48 +01:00
Andy Wilkinson b8927ebd90 Create ActiveMQConnectionFactory without using reflection
Fixes gh-41212
2024-06-24 11:51:31 +01:00
Andy Wilkinson 622c9ed882 Enable customization of properties used to create JCache CacheManager 2024-06-24 09:32:56 +01:00
Moritz Halbritter 6aeab4461e Polish "Auto-configure SpringLiquibase with Liquibase Customizer"
See gh-40986
2024-06-21 12:57:25 +02:00
Ahmed Ashour 32f509c0c4 Auto-configure SpringLiquibase with Liquibase Customizer
See gh-40986
2024-06-21 11:51:24 +02:00
Stéphane Nicoll fe4c34d226 Adapt test to include MappingJackson2CborHttpMessageConverter
See spring-projects/spring-framework#32428

See gh-41177
2024-06-20 20:18:08 +01:00
Stéphane Nicoll 2053e13c09 Adapt to new Placeholder resolution API
See gh-41177
2024-06-20 20:18:07 +01:00
Moritz Halbritter e7ffeb3dc9 Use Tomcat's new setter for max queue size
Closes gh-41093
Closes gh-40957
Closes gh-40945
2024-06-20 08:39:03 +02:00
Phillip Webb 9dda006a18 Merge branch '3.2.x' 2024-06-19 22:55:00 -07:00
Phillip Webb 2a4582b084 Update copyright year of changed files 2024-06-19 22:54:40 -07:00
Phillip Webb 905d6b96d0 Merge branch '3.2.x'
Closes gh-41166
2024-06-19 22:30:58 -07:00
Andy Wilkinson 491f34d25c Improve container test code
Replace `DockerImageNames` with a enum and relocate it from the
`testcontainers` to `container` package. The enum now also
becomes a common location that we can use to apply container
configuration such as timeouts.

Closes gh-41164

Co-authored-by: Phillip Webb <phil.webb@broadcom.com>
2024-06-19 20:10:03 -07:00
Phillip Webb 8a9feb0bb6 Merge branch '3.2.x'
Closes gh-41141
2024-06-17 16:51:53 -07:00
Phillip Webb 60b7e6cf23 Allow 'status' and 'error' to be excluded from error response
Update `ErrorAttributeOptions` to allow the `status` and `error`
fields to be excluded from the response without throwing a
NullPointerException.

Fixes gh-30011
2024-06-17 16:48:28 -07:00
Moritz Halbritter 76e2009bd8 Merge branch '3.2.x'
Closes gh-41084
2024-06-12 11:12:07 +02:00
Moritz Halbritter fed13b0e0c Back off if DataSource is not on the classpath
Closes gh-41082
2024-06-12 11:02:51 +02:00
Phillip Webb 147240aa0c Merge branch '3.2.x'
Closes gh-41080
2024-06-11 13:32:30 -07:00
Phillip Webb bcbcafaab2 Polish "Use method references when possible in test code"
See gh-40974
2024-06-11 12:58:04 -07:00
Ahmed Ashour 207327d97c Use method references when possible in test code
See gh-40974
2024-06-11 12:58:00 -07:00
Phillip Webb dcccb3b2b1 Polish "Use method references when possible"
See gh-40974
2024-06-11 12:57:59 -07:00
Ahmed Ashour 507229eef8 Use method references when possible
See gh-40974
2024-06-11 12:57:55 -07:00
Phillip Webb 255bcc28e6 Merge branch '3.2.x'
Closes gh-41077
2024-06-11 10:48:52 -07:00
Phillip Webb ecc9a2352d Polish "Use constructor rather than Collection.addAll"
See gh-41053
2024-06-11 10:02:27 -07:00
Piyal Ahmed 17adcfc180 Use constructor rather than Collection.addAll
See gh-41053
2024-06-11 09:39:45 -07:00
Phillip Webb d37098153c Polish 2024-06-11 09:35:59 -07:00
Scott Frederick fa131fa6a0 Merge branch '3.2.x'
Closes gh-40959
2024-05-30 15:16:27 -05:00
Ahmed Ashour f000af6a12 Remove unused parameter and polish javadoc
See gh-40955
2024-05-30 14:42:46 -05:00
Andy Wilkinson 087789bda3 Merge branch '3.2.x'
Closes gh-40953
2024-05-30 08:05:09 +01:00
Andy Wilkinson 211bf95f45 Revert "Adapt to Spring Data Neo4j now requiring a transaction manager"
This reverts commit b6467ed826. Changes
in Spring Data Neo4j mean that these changes are no longer necessary.
They also caused a problem with multiple transaction managers being
present when mixing Neo4j and, say, Data JPA.

Closes gh-40895
2024-05-30 08:00:11 +01:00
Andy Wilkinson 10e23b8f35 Polish "Fix Flyway 10 in a GraalVM native image"
See gh-40821
2024-05-29 14:21:17 +01:00
Maziz 345edb1301 Fix Flyway 10 in a GraalVM native image
See gh-40821
2024-05-29 14:18:10 +01:00
Phillip Webb 82d8222f56 Polish 2024-05-24 18:10:03 -07:00
Moritz Halbritter 3858a33162 Merge branch '3.2.x'
Closes gh-40869
2024-05-22 13:49:35 +02:00
Chris Bono 7a7bcd07da Encode JSON string in Pulsar auth params
The values in the `spring.pulsar.client.authentication.param`
config props map are not currently JSON encoded. For simple
values this is fine. However, some custom auth modules may
require more complex parameter values that may contain special
characters that results in invalid JSON. This commmit encodes
the parameter values using a very simple hand-rolled escape
function.

See gh-40493
2024-05-22 13:49:05 +02:00
Andy Wilkinson da4c2db3a7 Ensure default mime mappings are applied
Fixes gh-40860
2024-05-22 12:19:31 +01:00
Piyal Ahmed 21df3ff1de Fix typo in Neo4jReactiveDataAutoConfiguration class
See gh-40836
2024-05-22 11:22:46 +02:00
Andy Wilkinson fa074196d3 Merge branch '3.2.x'
Closes gh-40851
2024-05-21 10:44:41 +01:00
Andy Wilkinson a894879085 Use DefaultDbRefResolver whenever MongoDatabaseFactory is available
Fixes gh-39405
2024-05-21 10:29:39 +01:00
Andy Wilkinson 63515012d8 Merge branch '3.2.x'
Closes gh-40850
2024-05-21 10:29:12 +01:00
Andy Wilkinson 823cc90b46 Merge branch '3.1.x' into 3.2.x
Closes gh-40849
2024-05-21 10:28:59 +01:00
Andy Wilkinson f692fb1471 Ensure that Hazelcast binds to localhost for client tests
Closes gh-40848
2024-05-21 10:28:49 +01:00
Andy Wilkinson a40ecafe36 Merge branch '3.2.x'
Closes gh-40839
2024-05-20 15:55:16 +01:00
Andy Wilkinson b718e5806f Merge branch '3.1.x' into 3.2.x
Closes gh-40838
2024-05-20 15:55:00 +01:00
Andy Wilkinson 1d91757061 Document that HttpMessageConverters can be used for reordering/removal
Closes gh-40767
2024-05-20 15:54:12 +01:00
Andy Wilkinson e752295dca Merge branch '3.2.x'
Closes gh-40831
2024-05-20 10:15:18 +01:00
Andy Wilkinson 75976713fe Polish "Fix typo in CertificateMatchingTestSource class"
See gh-40822
2024-05-20 10:14:45 +01:00
Piyal Ahmed 092e921433 Fix typo in CertificateMatchingTestSource class
See gh-40822
2024-05-20 10:13:39 +01:00
Moritz Halbritter d98987f11e Merge branch '3.2.x'
Closes gh-40701
2024-05-13 11:31:55 +02:00
Moritz Halbritter 364af04377 Merge branch '3.1.x' into 3.2.x
Closes gh-40700
2024-05-13 11:30:42 +02:00
Yanming Zhou 0e450d602d Use CollectionUtils.isEmpty() and StringUtils.hasLength()
See gh-40645
2024-05-13 11:26:56 +02:00
Andy Wilkinson 53e1c7ed7d Include Kotlin API documentation in the documentation site
Closes gh-40692
2024-05-10 14:56:33 +01:00
Moritz Halbritter d3e49747b0 Merge branch '3.2.x' 2024-05-02 14:48:37 +02:00
Moritz Halbritter 75dac1435f Merge branch '3.1.x' into 3.2.x 2024-05-02 14:48:04 +02:00
Moritz Halbritter 68a63a7797 Polish 2024-05-02 14:47:53 +02:00
Phillip Webb ad7ab41742 Merge branch '3.2.x'
Closes gh-40601
2024-05-01 22:57:08 -07:00
Phillip Webb 93728cdfb1 Merge branch '3.1.x' into 3.2.x
Closes gh-40600
2024-05-01 22:55:30 -07:00
Johnny Lim f0fcc92b49 Remove reassignments for builders in GraphQL auto-configurations
See gh-40590
2024-05-01 22:51:19 -07:00
Scott Frederick c6c02906ef Merge branch '3.2.x'
Closes gh-40577
2024-04-29 16:43:20 -05:00
Scott Frederick 21a0bc7fee Merge branch '3.1.x' into 3.2.x
Closes gh-40576
2024-04-29 16:42:53 -05:00
Johnny Lim e2973a90a8 Use ConcurrentHashMap.newKeySet where feasible
See gh-40567
2024-04-29 15:41:37 -05:00
Moritz Halbritter 12cfb1fd2f Merge branch '3.2.x'
Closes gh-40560
2024-04-29 10:04:32 +02:00
Moritz Halbritter 8a3b0cd221 Throw dedicated exception if bundle content is not watchable
This also adds a FailureAnalyzer which prints a helpful message how to
fix that problem.

Closes gh-38903
2024-04-29 09:46:19 +02:00
Andy Wilkinson aeb5b1ffe3 Merge branch '3.2.x'
Closes gh-40523
2024-04-25 13:45:12 +01:00
Andy Wilkinson 79c3f0335b Merge branch '3.1.x' into 3.2.x
Closes gh-40522
2024-04-25 13:43:03 +01:00
Andy Wilkinson 27418edeb0 Remove references to s.j.generate-ddl in favor of s.j.hibernate.ddl-auto
Closes gh-40503
2024-04-25 13:39:28 +01:00
Andy Wilkinson f1d0bcda2f Revert "Remove references to s.j.generate-ddl in favor of s.j.hibernate.ddl-auto"
This reverts commit 273f8e20c2.
2024-04-25 12:44:51 +01:00
Andy Wilkinson 273f8e20c2 Remove references to s.j.generate-ddl in favor of s.j.hibernate.ddl-auto 2024-04-25 12:24:47 +01:00
Scott Frederick fd010988ef Merge branch '3.2.x'
Closes gh-40479
2024-04-22 14:38:37 -05:00
Scott Frederick 3a9ee9f1a7 Merge branch '3.1.x' into 3.2.x
Closes gh-40478
2024-04-22 14:38:28 -05:00
Scott Frederick 362c0c1b4e Verify alignment of MongoDB UUID representation defaults
Closes gh-33532
2024-04-22 14:38:18 -05:00
Moritz Halbritter 9184448054 Merge branch '3.2.x'
Closes gh-40471
2024-04-22 14:34:48 +02:00
Moritz Halbritter 4b61ae415b Merge branch '3.1.x' into 3.2.x
Closes gh-40470
2024-04-22 14:34:36 +02:00
Moritz Halbritter 5510c6f61b Clarify that all named properties must match for @ConditionalOnProperty to match
Closes gh-40110
2024-04-22 14:27:54 +02:00
Johnny Lim 3c76f81fe3 Polish
See gh-40449
2024-04-22 12:27:49 +01:00
Andy Wilkinson 4118de7f59 Merge branch '3.2.x'
Closes gh-40467
2024-04-22 12:11:04 +01:00
Andy Wilkinson 07bb1878cf Merge branch '3.1.x' into 3.2.x
Closes gh-40466
2024-04-22 12:10:52 +01:00
Andy Wilkinson 34f53d48b9 Polish "Fix handling of Redis nodes with IPv6 addresses"
See gh-39819
2024-04-22 11:51:31 +01:00
Tobias Laatsch 9b326d59fe Fix handling of Redis nodes with IPv6 addresses
See gh-39819
2024-04-22 11:33:09 +01:00
Phillip Webb 6963bd884b Merge branch '3.2.x' 2024-04-18 12:53:26 -07:00
Phillip Webb 38af8cd362 Merge branch '3.1.x' into 3.2.x 2024-04-18 12:52:54 -07:00
Yanming Zhou 6226faa9cd Polishing RabbitAutoConfigurationTests to use kebab-case keys
See gh-40422
2024-04-18 12:51:35 -07:00
Phillip Webb dc76240612 Polish 2024-04-18 12:50:50 -07:00
Phillip Webb d243d7eb50 Polish 'Add `spring.rabbitmq.template.allowed-list-patterns` property'
See gh-40421
2024-04-18 12:48:39 -07:00
Yanming Zhou c329c5fe5b Add `spring.rabbitmq.template.allowed-list-patterns` property
Update `RabbitProperties` and `RabbitTemplateConfigurer` to support a
`spring.rabbitmq.template.allowed-list-patterns` property.

The can be used to prevent errors of the form:

	java.lang.SecurityException: Attempt to deserialize unauthorized
	class com.example.domain.Message; add allowed class name patterns
	to the message converter or, if you trust the message orginiator,
	set environment variable 'SPRING_AMQP_DESERIALIZATION_TRUST_ALL'
	or system property 'spring.amqp.deserialization.trust.all' to true

See gh-40421
2024-04-18 12:46:38 -07:00
Yanming Zhou a52ab774de Configure JpaBaseConfiguration with custom ManagedClassNameFilter
Update `JpaBaseConfiguration` to configure a `ManagedClassNameFilter`
if one is available.

See gh-39813
2024-04-18 12:08:06 -07:00
Chris Bono 08ad7aa444 Add Spring Pulsar transaction support
Adds auto-config for Spring for Apache Pulsar transactions.

Introduces a new `spring.pulsar.transaction.enabled` property
which can be used to enable transactions. This feature is
opt-in and remains disabled by default.

See gh-40189

Co-authored-by: Andy Wilkinson <andy.wilkinson@broadcom.com>
Co-authored-by: Phillip Webb <phil.webb@broadcom.com>
2024-04-17 19:30:58 -07:00
Andy Wilkinson 4fd0375eb1 Adapt tests to addition of new JWT validator in Spring Security
See gh-40230
2024-04-12 12:14:05 +01:00
Andy Wilkinson 12e004f131 Revert "Exclude unwanted javax.inject dependency from Data Couchbase"
This reverts commit 06f5ab162f. The
dependency has been removed in Data Couchbase, making the exclude
unnecessary.

See gh-40200
2024-04-12 11:19:16 +01:00
Brian Clozel 04faec1d3e Add spring.graphql.websocket.keep-alive property
As of spring-projects/spring-graphql#534, Spring for GraphQL supports
the configuration of keep-alive PINGs for WebSocket connections.
This commit auto-configures this value in the `GraphQlWebSocketHandler`
WebFlux and MVC implementations if the
`spring.graphql.websocket.keep-alive` property is configured.

Closes gh-40320
2024-04-11 18:52:00 +02:00
Andy Wilkinson 1ea6f2f51f Revert "Revert "Exclude unwanted javax.inject dependency from Data Couchbase""
This reverts commit 3b76165f4e.

Turns out, the exclude's still needed for now? with Data Couchbase
5.1.x.

See gh-40200
2024-04-11 17:06:03 +01:00
Andy Wilkinson 93c8513a78 Merge branch '3.2.x'
See gh-40224
2024-04-11 16:56:41 +01:00
Andy Wilkinson 7d3ea3f06f Merge branch '3.1.x' into 3.2.x
See gh-40212
2024-04-11 16:56:22 +01:00
Andy Wilkinson 3b76165f4e Revert "Exclude unwanted javax.inject dependency from Data Couchbase"
This reverts commit 06f5ab162f. The
dependency has been removed in Data Couchbase, making the exclude
unnecessary.

See gh-40200
2024-04-11 16:55:24 +01:00
Andy Wilkinson 21bd300e09 Polish "Delay interaction with Lazy CqlSession bean until first usage"
See gh-39948
2024-04-10 18:16:31 +01:00
Christoph Strobl 8343942147 Delay interaction with Lazy CqlSession bean until first usage
Though the CqlSession provided by the CassandraAutoConfiguration can
be lazy, the configuration for Data Cassandra triggers early bean
instantiation. This commit uses new APIs in Data Cassandra to make
use of the intended lazy bean initialization and therefore prevents
the application from failing to start up when Cassandra might not yet
be ready.

See gh-39948
2024-04-10 17:53:53 +01:00
Andy Wilkinson 5166942ce7 Polish "Upgrade to MongoDB 5.0"
See gh-39989
2024-04-09 10:48:53 +01:00
Christoph Strobl 35bc0f9f21 Upgrade to MongoDB 5.0
See gh-39989
2024-04-09 10:44:03 +01:00
Andy Wilkinson 3699bcfb87 Merge branch '3.2.x'
See gh-40224
2024-04-09 09:09:12 +01:00
Andy Wilkinson 3bb7baf90f Merge branch '3.1.x' into 3.2.x
See gh-40212
2024-04-09 09:07:52 +01:00
Andy Wilkinson 06f5ab162f Exclude unwanted javax.inject dependency from Data Couchbase
See gh-40200
2024-04-09 09:07:13 +01:00
Phillip Webb 3ed77ae5f3 Polish 2024-04-04 23:45:21 -07:00
Phillip Webb f7397b9557 Merge branch '3.2.x' 2024-04-04 23:45:15 -07:00
Phillip Webb ea52a44e62 Polish 2024-04-04 20:55:52 -07:00
Phillip Webb f1018ba38a Merge branch '3.1.x' into 3.2.x 2024-04-04 20:36:29 -07:00
Phillip Webb 21f5d375b7 Polish 2024-04-04 20:14:01 -07:00
Moritz Halbritter e9e2bc94f8 Merge branch '3.2.x'
Closes gh-40169
2024-04-04 13:05:34 +02:00
Moritz Halbritter fe7501b292 Use named virtual threads for Jetty
Closes gh-40152
2024-04-04 11:44:14 +02:00
Scott Frederick ad79c373f8 Add SNI support to web server SSL auto-configuration
Properties under `server.ssl.server-name-bundles` and
`management.server.ssl.server-name-bundles` can be used to configure
mappings of host names to SSL bundles to support SNI in embedded web
servers.

Closes gh-26022
2024-03-28 14:12:20 -05:00
Johnny Lim 2b5d0b3f4f Make PropertiesLdapConnectionDetails package-private
See gh-40081
2024-03-26 09:01:01 +01:00
Moritz Halbritter 985918b34a Make configuration properties for Pulsar failover more concise
Closes gh-40077
2024-03-22 13:44:24 +01:00
Moritz Halbritter 649d4be51d Polish "Add property spring.data.jdbc.dialect"
See gh-39941
2024-03-22 11:43:09 +01:00
Jens Schauder 7eb9843e1a Add property spring.data.jdbc.dialect
See gh-39941
2024-03-22 11:39:35 +01:00
Johnny Lim 12b4353e28 Polish
See gh-40034
2024-03-22 11:06:34 +01:00
Scott Frederick 0962025c4b Support loading of base64 encoded values as Resources
An ApplicationResourceLoader has been introduced to support loading
resources using registered ProtocolResolvers. All usages of
DefaultResourceLoader and ResourceUtils have been changed to use
the ApplicationResourceLoader.

A Base64ProtocolResolver has been added to support resources of type
`base64:` that contain base64 encoded values.

Closes gh-36033
2024-03-20 10:40:14 -05:00
Matt Pavlovich af18a69d54 Use activemq-client instead of transitional activemq-client-jakarta
See gh-40028
2024-03-20 11:02:01 +00:00
Andy Wilkinson 62f922369d Update metadata to reflect property changes made for Flyway 10
See gh-40022
2024-03-19 15:06:04 +00:00
Andy Wilkinson a65e1018f0 Upgrade to Flyway 10.10
Closes gh-40022
2024-03-19 12:24:47 +00:00
Brian Clozel e3f8c34b9b Merge branch '3.2.x'
Closes gh-40016
2024-03-19 11:52:27 +01:00
Brian Clozel c27bb77742 Merge branch '3.1.x' into 3.2.x 2024-03-19 11:38:03 +01:00
Brian Clozel 7eb155d76d Upgrade to GraphQL Java 20.8
Closes gh-40020
2024-03-19 11:36:57 +01:00
Andy Wilkinson c2adcd7be8 Upgrade to Infinispan 15.0.0.Final
Closes gh-40017
2024-03-19 10:21:50 +00:00
Moritz Halbritter 5c2f64d677 Merge branch '3.2.x'
Closes gh-39961
2024-03-18 11:41:50 +01:00
Moritz Halbritter 09652cb282 Polish "Set virtual thread names for RabbitMQ and Pulsar"
See gh-39958
2024-03-18 11:24:17 +01:00
Maziz ecda754116 Set virtual thread names for RabbitMQ and Pulsar
See gh-39958
2024-03-18 11:24:10 +01:00
Moritz Halbritter 52eaa7fb3a Revert "Merge pull request #39941 from schauder"
This reverts commit ab5dee819b, reversing
changes made to 24223075eb.
2024-03-15 12:06:27 +01:00
Moritz Halbritter 148c5e8ed5 Polish "Add property spring.data.jdbc.dialect"
See gh-39941
2024-03-15 11:47:35 +01:00
Jens Schauder b3ddb22f75 Add property spring.data.jdbc.dialect
The class valued property allows to configure a dialect, without relying
on a database connection to determine it.

See gh-39941
2024-03-15 11:40:47 +01:00
Johnny Lim 412b8dd548 Polish
See gh-39910
2024-03-15 11:25:16 +01:00
Chris Bono ac0d1e0ec6 Re-enable Spring Pulsar interceptor tests
The PulsarTemplate recently replaced its list of ProducerInterceptors
with a list of ProducerBuilderCustomizers that customize the builder by
adding each interceptor to the builder. The PulsarAutoConfigurationTests
previosuly relied on the previous field. This commit adjusts the tests
to instead use the Customizers testing utility to verify the
interceptors.

(cherry picked from commit 9c054a021f)

See gh-39946
2024-03-15 11:00:09 +01:00
Johnny Lim c5df4e3530 Polish gh-38559
See gh-39931
2024-03-14 10:47:34 +01:00
Chris Bono 9c054a021f Re-enable Spring Pulsar interceptor tests
The PulsarTemplate recently replaced its list of ProducerInterceptors
with a list of ProducerBuilderCustomizers that customize the builder by
adding each interceptor to the builder. The PulsarAutoConfigurationTests
previosuly relied on the previous field. This commit adjusts the tests
to instead use the Customizers testing utility to verify the
interceptors.

See gh-39912
2024-03-13 11:34:55 +01:00
Johnny Lim d9d305ba3d Delegate getExecutionContextSerializer() to DefaultBatchConfiguration if not provided
See gh-39911
2024-03-12 16:40:20 -05:00
Andy Wilkinson 68ac11c1fc Start building against Spring Pulsar 1.1.0 snapshots
See gh-39898
2024-03-12 10:13:22 +00:00
Andy Wilkinson 25ffa09731 Start building against Spring Kafka 3.2.0 snapshots
See gh-39897
2024-03-12 09:28:29 +00:00
Brian Clozel 08626d3591 Auto-configure SSE support for GraphQL endpoints
This commit auto-configures the newly supported SSE transport for
GraphQL endpoints in both Spring MVC and WebFlux.

Closes gh-39651
2024-03-11 14:55:58 +01:00
Brian Clozel 65ef899400 Use optimized request predicates for GraphQL endpoints
Prior to this commit, Spring Boot auto-configurations for GraphQL web
endpoint were implementing their own `RequestPredicate` instances for
HTTP endpoints. Those were composing predicates with the provided DSL.
While this is functionnally right, Spring for GraphQL now provides
predicates in order to:

* host the implementation in spring-graphql directly
* provide optimized predicates for faster matching and lower overhead

This commit switches the auto-configurations to using these new
predicates.

Closes gh-39652
2024-03-11 11:03:39 +01:00
Moritz Halbritter 2f99c19f11 Revert "Configure virtual threads on Undertow if enabled"
This reverts commit cff1b33f8e.

See gh-38819

Closes gh-39812
2024-03-04 09:46:14 +01:00
Scott Frederick 930c9347be Merge branch '3.2.x'
Closes gh-39774
2024-02-27 14:13:21 -06:00
Scott Frederick 460d8a070d Merge branch '3.1.x' into 3.2.x
Closes gh-39773
2024-02-27 14:13:12 -06:00
Stéphane Nicoll f6e4bede09 Stop throwing BindingException in tests
This commit adapts the error controller tests that need the request
to fail with a bind issue, and simulate the behavior of
ModelAttributeMethodProcessor.

As of Spring Framework 6.0.x, this processor no longer throws a
BindingException, but rather a MethodArgumentNotValidException and
the handing of BindException itself is deprecated.

This makes sure that those tests can smoothly be executed against
Spring Framework 6.2.x as throwing a BindingException now results
into an unresolved exception, and an internal server error rather than
the expected bad request.

See gh-39767
2024-02-27 14:12:19 -06:00
Scott Frederick 2594e1c116 Merge branch '3.2.x'
Closes gh-39770
2024-02-27 13:01:02 -06:00
Scott Frederick 7efef3141e Merge branch '3.1.x' into 3.2.x
Closes gh-39769
2024-02-27 13:00:50 -06:00
Stéphane Nicoll c259a673d3 Make resolution algorithm of ConnectionDetailsFactory more explicit
This commit moves the resolution check for ConnectionDetailsFactory
to a dedicated method to make it more clear that it is meant to verify
that the implementation is resolved and can be loaded from the
classpath.

The previous algorithm relied on a behavior of ResolvableType that only
resolves the first level generics. Further improvements in Spring
Framework 6.2 make this check invalid as some implementations use a
Container that can hold a nested generic.

See gh-39737
2024-02-27 12:46:51 -06:00
Phillip Webb f8a1dae835 Merge branch '3.2.x' 2024-02-21 15:27:57 -08:00
Phillip Webb 12de6aa46a Merge branch '3.1.x' into 3.2.x 2024-02-21 15:27:27 -08:00
Moritz Halbritter 9110b1298c Polish "Configure suitable TaskExecutor for WebSocket"
See gh-39611
2024-02-20 11:07:27 +01:00
BenchmarkingBuffalo 1d820a8994 Configure suitable TaskExecutor for WebSocket
For WebSocket support the preconfigured ThreadExecutor is set for
ChannelRegistrations similar to the JpaRepositoriesAutoConfiguration.

See gh-39611
2024-02-20 10:26:23 +01:00
Brian Clozel 8d1e877e55 Merge branch '3.2.x'
Closes gh-39625
2024-02-19 14:36:21 +01:00
Patrick Strawderman 057432c87b Re-order route registration for GraphQL web endpoints
Re-order the route registrations for GraphQL requests so that the
most commonly matched path is evaluated first.

Closes gh-39613
2024-02-19 14:36:09 +01:00