Commit Graph

4454 Commits (main)

Author SHA1 Message Date
Zisis Pavloudis eb6b151c41 Support unwrapping in ValidatorAdapter
See gh-37119
1 year ago
Andy Wilkinson 0242ba8a13 Merge branch '3.1.x' 1 year ago
Andy Wilkinson 7754dd290a Merge branch '3.0.x' into 3.1.x 1 year ago
Andy Wilkinson 994bafdfd9 Merge branch '2.7.x' into 3.0.x 1 year ago
Marten Deinum 5141e5c4ac Fix description of brokerUrl property in ArtemisProperties
Update description to refer to url instead of port.

See gh-37260
1 year ago
Stephane Nicoll 0206c30238 Upgrade to Couchbase Client 3.4.10
Closes gh-37297
1 year ago
Stephane Nicoll a52d7e255b Upgrade to Couchbase Client 3.4.10
Closes gh-37289
1 year ago
Brian Clozel 16940518c1 Polish GraphQL QueryBE and QueryDSL auto-configurations
Closes gh-34974
1 year ago
Brian Clozel 32b65e85ae Add config property for GraphQL Schema Mapping Inspection
This commit adds a new `spring.graphql.schema.inspection.enabled`
property, which is `true` by default.
This property enables the logging at the INFO level of the GraphQL
Schema inspection report.
During startup, Spring for GraphQL will inspect the schema and report
fields and registrations that are unmapped in the application.

Closes gh-36252
1 year ago
dkswnkk 1d7c0108d0 Capitalize order constant in TomcatWebServerFactoryCustomizer
See gh-37211
1 year ago
Andy Wilkinson ed5d16de84 Upgrade to Jetty 12
Closes gh-36073
1 year ago
Phillip Webb d9af7cec14 Merge pull request #37197 from onobc
* pr/37197:
  Polish 'Add Pulsar ConnectionDetails support'
  Add Pulsar ConnectionDetails support

Closes gh-37197
1 year ago
Phillip Webb 750c597225 Polish 'Add Pulsar ConnectionDetails support'
See gh-37197
1 year ago
Chris Bono 089fef0392 Add Pulsar ConnectionDetails support
Add `ConnectionDetails` support for Apache Pulsar and provide adapters
for Docker Compose and Testcontainers.

See gh-37197
1 year ago
Moritz Halbritter d84c81d18f Reduce logging in WelcomePageHandlerMapping on invalid Accept headers
Closes gh-37118
1 year ago
anessi 320dd0e24e Add virtual host support for Rabbit Stream
Add a new property 'spring.rabbitmq.stream.virtual-host' which can be
used to set a custom virtual host for streams.

See gh-37189
1 year ago
Chris Bono 6e7b845bdf Add support for Apache Pulsar
Add support for Apache Pulsar using the Spring for Apache Pulsar
project.

See gh-34763

Co-authored-by: Phillip Webb <pwebb@vmware.com>
1 year ago
Moritz Halbritter 8f78acd548 Merge branch '3.1.x' 1 year ago
Moritz Halbritter 1962f4ecb7 Merge branch '3.0.x' into 3.1.x 1 year ago
Moritz Halbritter a69ff3bd59 Merge branch '2.7.x' into 3.0.x 1 year ago
Moritz Halbritter 76e51bc92f Only enable needed Couchbase services in integration tests 1 year ago
Andy Wilkinson 41f66fa7ec Merge branch '3.1.x'
Closes gh-37159
1 year ago
Andy Wilkinson c7063af63a Merge branch '3.0.x' into 3.1.x
Closes gh-37158
1 year ago
Andy Wilkinson 67e1ee5dcf Fix ordering of Jetty's WebSocketUpgradeFilter
Closes gh-37115
1 year ago
Moritz Halbritter f1f4e9c008 Implement RestClientBuilderConfigurer
Closes gh-36265
1 year ago
Johnny Lim 30eacd553d Add Javadoc since for new setTaskExecutor method
See gh-37117
1 year ago
Stephane Nicoll 19df3934c6 Upgrade to Flyway 9.21.2
Closes gh-37076
1 year ago
Stephane Nicoll 0f20fc2bbe Merge branch '3.1.x' 1 year ago
Stephane Nicoll 10873b0e7c Merge branch '3.0.x' into 3.1.x 1 year ago
Stephane Nicoll e8d329d99f Polish 1 year ago
Moritz Halbritter 450cd712c9 Merge branch '3.1.x'
Closes gh-37016
1 year ago
Moritz Halbritter a6b63d285c Merge branch '3.0.x' into 3.1.x
Closes gh-37015
1 year ago
Moritz Halbritter d3816651ce Merge branch '2.7.x' into 3.0.x
Closes gh-37014
1 year ago
Moritz Halbritter dc62e5fbc3 Polish "Set max request header size on Netty when using HTTP/2"
See gh-36766
1 year ago
Nerses Aznauryan ee5b23bb02 Set max request header size on Netty when using HTTP/2
Fix an issue that server.max-http-request-header-size doesn't have an
effect on Netty server with http2 enabled.

See gh-36766
1 year ago
Stephane Nicoll 37467c79d0 Polish "Reuse JOOQ helper to determine the dialect to use"
See gh-36991
1 year ago
Ramil Sayetov 36b5500ad0 Reuse JOOQ helper to determine the dialect to use
See gh-36991
1 year ago
Scott Frederick 73874911ad Adapt to changes in Spring Data snapshots
See gh-36680
1 year ago
Stephane Nicoll 85b4362ec6 Adapt to change in Spring Framework snapshots 1 year ago
Phillip Webb 2ef2529c93 Refine Flyway extension mapping
Change `ConfigurationExtensionMapper` to a helper class that can
create a `Consumer` to use with the `PropertyMapper`.

See gh-36364
1 year ago
Phillip Webb 8edec21a6f Update copyright year of changed files 1 year ago
Phillip Webb 407fa780c8 Polish 1 year ago
Phillip Webb d73d8f8e4f Merge branch '3.1.x' 1 year ago
Phillip Webb 155300525e Polish 1 year ago
Phillip Webb 848a61a3a8 Merge branch '3.0.x' into 3.1.x 1 year ago
Phillip Webb 9805723415 Update copyright year of changed files 1 year ago
Phillip Webb a0089c5c76 Merge branch '2.7.x' into 3.0.x 1 year ago
Phillip Webb 46773dd5df Update copyright year of changed files 1 year ago
Phillip Webb 527b2f2cac Polish 1 year ago
Andy Wilkinson b581ab0d3a Upgrade to Flyway 9.21.1
Closes gh-36887
1 year ago
Andy Wilkinson 6c3c8398d0 Upgrade to Elasticsearch Client 8.9.0
Closes gh-36886
1 year ago
Andy Wilkinson 3c7d400f0d Merge branch '3.1.x'
Closes gh-36866
1 year ago
Andy Wilkinson cac157b2a6 Merge branch '3.0.x' into 3.1.x
Closes gh-36865
1 year ago
Andy Wilkinson 7c77668372 Merge branch '2.7.x' into 3.0.x
Closes gh-36864
1 year ago
Andy Wilkinson c1f2efe00c Document that spring.security.filter properties are Servlet-only
Closes gh-33551
1 year ago
Moritz Halbritter 5b00d5f89b Auto-configure SimpleAsyncTaskScheduler when virtual threads are enabled
This auto-configures a new SimpleAsyncTaskSchedulerBuilder bean in the
context. This bean is configured to use virtual threads, if enabled.

SimpleAsyncTaskSchedulerCustomizers can be used to customize the built
SimpleAsyncTaskScheduler.

If virtual threads are enabled, the application task scheduler is
configured to be a SimpleAsyncTaskScheduler.

Adds a new configuration property spring.task.scheduling.simple
.concurrency-limit

Closes gh-36609
1 year ago
Stephane Nicoll 38dbc644ae Add auto-configuration for JdbcClient
Closes gh-36579
1 year ago
Moritz Halbritter b5a48e926d Handle timeout of latch await in tests 1 year ago
Moritz Halbritter 62fb45f75f Replace contains/put/get pattern with computeIfAbsent 1 year ago
Moritz Halbritter 7bb337aeb1 Polish tests 1 year ago
Moritz Halbritter ed9169501e Polish 1 year ago
Stephane Nicoll acf6bb644a Merge branch '3.1.x'
Closes gh-36773
1 year ago
Stephane Nicoll 10fecc855c Merge branch '3.0.x' into 3.1.x
Closes gh-36772
1 year ago
Stephane Nicoll e7706b4201 Merge branch '2.7.x' into 3.0.x
Closes gh-36771
1 year ago
Stephane Nicoll 5e11bac1da Polish "Configure ActiveMQConnectionFactory properly without spring-jms"
See gh-36767
1 year ago
Eddú Meléndez bcfaad2cb8 Configure ActiveMQConnectionFactory properly without spring-jms
Previously, if spring-jms is not available and a non-pool connection
factory is requested (the default), no `CachingConnectionFactory` is
created. This commit makes sure to separate the two conditions, so
that a connection factory can be obtained even if spring-jms is not
on the classpath.

See gh-36767
1 year ago
Moritz Halbritter 1a8b8ce26e Revert "Revise synchronized blocks"
This reverts commit 497bbf9c2d.
1 year ago
Moritz Halbritter d93d05ade2 Revert "Use virtual threads in BackgroundPreinitializer if enabled"
This reverts commit 4bbc336321.
1 year ago
Marc Becker 36e31c0612 Add resource hints for MessageSource
This only registers the default locations, not the one users can provide
via 'spring.messages.basename'.

This is similar to the approach taken for schema.sql and data.sql
in class SqlInitializationScriptsRuntimeHints.

See gh-36682
1 year ago
Andy Wilkinson 8ce5fb5f06 Merge branch '3.1.x'
Closes gh-36701
1 year ago
Andy Wilkinson 664581eb90 Merge branch '3.0.x' into 3.1.x
Closes gh-36700
1 year ago
Andy Wilkinson c6dc505932 Auto-configure JsonpMapper even with user-defined transport
Closes gh-36698
1 year ago
Moritz Halbritter 4bbc336321 Use virtual threads in BackgroundPreinitializer if enabled
Closes gh-36695
1 year ago
Andy Wilkinson 48813a0e5b Merge branch '3.1.x'
Closes gh-36697
1 year ago
Andy Wilkinson 12a2c615a9 Merge branch '3.0.x' into 3.1.x
Closes gh-36696
1 year ago
Andy Wilkinson 803c155e69 Order default customizers so that they can be overridden
Closes gh-36674
1 year ago
Moritz Halbritter 497bbf9c2d Revise synchronized blocks
- Replace synchronized with Lock when guarding long-running operations
- Remove unnecessary synchronization in FileSystemWatcher
- Replace HashMap with ConcurrentHashMap in Restarter
- Remove unnecessary locking on AtomicBoolean in
  SpringApplicationBuilder
- Remove unnecessary locking in SimpleFormatter

Closes gh-36670
1 year ago
Andy Wilkinson 77e382ec64 Polish "Add support for using an AuthTokenManager with Neo4j"
See gh-36650
1 year ago
Michael Simons 1f0a3901b2 Add support for using an AuthTokenManager with Neo4j
Neo4j Java driver introduced support for an `AuthTokenManager` that can
be used to define expiring tokens for authentication with a database.

This commit adds an `ObjectProvider<AuthTokenManager> authTokenManagers`
parameter to the corresponding auto configuration class. If the provider
resolves to a unique object, that `AuthTokenManager` will have precedence
over any static token.

See gh-36650
1 year ago
Stephane Nicoll a223834d57 Polish "Order auto-configured ProblemDetailsExceptionHandler beans"
See gh-36288
1 year ago
Maurice Zeijen 9955ee7e8a Order auto-configured ProblemDetailsExceptionHandler beans
Add `@Order(0)` to the WebMVC and Webflux
`ProblemDetailsExceptionHandler` beans. This makes it easier to create
custom `@ControllerAdvice` beans that must be ordered before or after
the `ProblemDetailsExceptionHandler`.

See gh-36288
1 year ago
Moritz Halbritter 3a9fadf30f Enable virtual threads for Kafka listener
Closes gh-36396
1 year ago
Scott Frederick f2ad08c292 Add since version to deprecated config properties
See gh-36482
1 year ago
Andy Wilkinson 806aa45279 Merge branch '3.1.x'
Closes gh-36661
1 year ago
Andy Wilkinson 0d646d7c26 Polish "Support ServiceConnection beans in slice tests"
See gh-36037
1 year ago
Stephane Nicoll 75bb862255 Remove dead code 1 year ago
Moritz Halbritter 19859a9023 Simplify TaskExecutionAutoConfiguration 1 year ago
Moritz Halbritter 4ba7463d75 Polish 1 year ago
Moritz Halbritter 51008a7d39 Add ThreadPoolTaskSchedulerBuilder and deprecate TaskSchedulerBuilder
Closes gh-36651
1 year ago
Stephane Nicoll 922f66a85d Merge branch '3.1.x'
Closes gh-36654
1 year ago
Michael Simons ef3b99ee51 Fix test declaration in Neo4jAutoConfigurationTests
The test was annotated `@Bean`, must be `@Test`.

See gh-36649
1 year ago
Moritz Halbritter e4c38e59a9 Implement SimpleAsyncTaskExecutorBuilder
The SimpleAsyncTaskExecutorBuilder can be used to create
SimpleAsyncTaskExecutor. It will be auto-configured into the context.
SimpleAsyncTaskExecutorCustomizer can be used to customize the built
SimpleAsyncTaskExecutor.

If virtual threads are enabled:
- SimpleAsyncTaskExecutor will use virtual threads
- SimpleAsyncTaskExecutorBuilder will be used as the application task
  executor

A new property 'spring.task.execution.simple.concurrency-limit' has been
added to control the concurrency limit of the SimpleAsyncTaskExecutor

Closes gh-35711
1 year ago
Moritz Halbritter 32c91af440 Add ThreadPoolTaskExecutorBuilder and deprecate TaskExecutorBuilder
Closes gh-36637
1 year ago
Moritz Halbritter 1347b998e6 Remove @ConditionalOnVirtualThreads
See gh-36624
See gh-35892
1 year ago
Moritz Halbritter 9e212875c3 Remove VirtualThreads bean
Reverts eeb1e1fc35

See gh-36615
See gh-36387
1 year ago
Moritz Halbritter bf48819222 Implement @ConditionalOnThreading
Closes gh-36624
1 year ago
Moritz Halbritter b1a3dad16c Configure virtual threads on the RabbitMQ listener
Closes gh-36387
1 year ago
Moritz Halbritter eeb1e1fc35 Add VirtualThreads bean and auto-configuration
This bean is only in the context if virtual threads are enabled. It can
be used to get access to the virtual thread executor.
1 year ago
Moritz Halbritter 3cc9a3bb32 Remove duplicate applicationTaskExecutor bean method
See gh-35710
1 year ago
Moritz Halbritter 39f6b85039 Polish 1 year ago
Moritz Halbritter 9cb5763794 Add property to set changeConsumerThreadName for Kafka
Closes gh-36343
1 year ago
Moritz Halbritter 49ae8c0998 Auto-configure Kafka's threadNameSupplier
Closes gh-36344
1 year ago
Stephane Nicoll b0438b0f03 Polish "Allow custom RSocket WebsocketServerSpecs to be defined"
See gh-29567
1 year ago
Leo Li f840141652 Allow custom RSocket WebsocketServerSpecs to be defined
See gh-29567
1 year ago
Stephane Nicoll 54066791f9 Polish "Add RabbitMQ container forceStop property"
See gh-36539
1 year ago
Gary Russell 8b716a2f6c Add RabbitMQ container forceStop property
See gh-36539
1 year ago
Johnny Lim 96c9915f12 Polish
See gh-36565
1 year ago
Andy Wilkinson b476d368db Polish "Make HikariDataSource participate in checkpoint-restore"
See gh-36422
1 year ago
Christoph Strobl 9240f971fb Make HikariDataSource participate in checkpoint-restore
See gh-36422
1 year ago
Andy Wilkinson 14d2675aab Add `@ConditionalOnCheckpointRestore`
Closes gh-36536
1 year ago
Moritz Halbritter 6050fff078 Auto-configure observability for R2DBC
The new ConnectionFactoryDecorator can be used to decorate the
ConnectionFactory built by the ConnectionFactoryBuilder.

The new R2dbcObservationAutoConfiguration configures a
ConnectionFactoryDecorator to attach a ObservationProxyExecutionListener
to ConnectionFactories. This enables Micrometer Observations for R2DBC
queries.

Closes gh-33768
1 year ago
Stephane Nicoll d04daf9184 Merge branch '3.1.x'
Closes gh-36533
1 year ago
Stephane Nicoll a607056b98 Merge branch '3.0.x' into 3.1.x
Closes gh-36532
1 year ago
Stephane Nicoll 259fac57a9 Merge branch '2.7.x' into 3.0.x
Closes gh-36531
1 year ago
Stephane Nicoll 854c162966 Polish "Fail fast if job name does not exist"
See gh-36060
1 year ago
Akshay Dubey c38cd74542 Fail fast if job name does not exist
See gh-36060
1 year ago
Stephane Nicoll 740ed18fa7 Merge branch '3.1.x'
Closes gh-36530
1 year ago
Stephane Nicoll 89066b4d1e Merge branch '3.0.x' into 3.1.x
Closes gh-36529
1 year ago
Stephane Nicoll 73cc54ad34 Prevent PostConstruct to be used in production code
Closes gh-36528
1 year ago
Christoph Dreis 343c9c6f7e Remove references to Atomikos and Bitronix
See gh-35562
1 year ago
Andy Wilkinson 290ef3ccf6 Merge branch '3.1.x'
Closes gh-36493
1 year ago
Andy Wilkinson c38bca04c4 Merge branch '3.0.x' into 3.1.x
Closes gh-36492
1 year ago
Andy Wilkinson 6a2a3e2b26 Merge branch '2.7.x' into 3.0.x
Closes gh-36491
1 year ago
Andy Wilkinson 5a0f1bbe9b Polish "Correct description of overrides for spring.redis.url"
See gh-36477
1 year ago
Johnny Lim 1effd3723f Correct description of overrides for spring.redis.url
See gh-36477
1 year ago
Andy Wilkinson 3affb3342e Deprecate auto-configuration for InfluxDB
Closes gh-35190
1 year ago
Stephane Nicoll 311fa6272d Polish "Add service connection for Testcontainers ActiveMQ"
This also adds support for Docker Compose.

See gh-35080
1 year ago
Eddú Meléndez 63121dd08a Add service connection for Testcontainers ActiveMQ
See gh-35080
1 year ago
Moritz Halbritter 54e99d68fa Auto-configure ObservationRegistry on ScheduledTaskRegistrar
The TaskSchedulingAutoConfiguration.taskScheduler auto-configuration now
no longer backs off on SchedulingConfigurer beans.

Closes gh-36119
1 year ago
Andy Wilkinson e0d021b710 Merge branch '3.1.x'
Closes gh-36446
1 year ago
Andy Wilkinson fe123e5b10 Fix handling of additional-hosts with Mongo
Closes gh-36441
1 year ago
Andy Wilkinson 283dc37db3 Make AnnotatedControllerConfigurer use applicationTaskExecutor
Closes gh-36388
1 year ago
Stephane Nicoll c6e47b86d7 Move Flyway configuration extension properties to dedicated namespace
This commit harmonizes the handling of ConfigurationExtension for
Flyway. The existing Oracle and SQLServer extensions are now mapped from
flway.oracle and flyway.sqlserver, respectively. The existing properties
have been deprecated in favor of the new location.

Closes gh-36444
1 year ago
Stephane Nicoll 8da706603e Add support for flyway.postgresql.transactional.lock
Closes gh-32629
1 year ago
Stephane Nicoll 71406977c2 Harmonize configuration of Flyway SQL Server extension
Closes gh-36440
1 year ago
Stephane Nicoll fb640c04e7 Upgrade to Flyway 9.20.1
Closes gh-36364

Co-authored-by: Andy Wilkinson <wilkinsona@vmware.com>
1 year ago
Andy Wilkinson d205d10519 Configure WebFlux's blocking execution to use applicationTaskExecutor
Closes gh-36331
1 year ago
Stephane Nicoll c19a0a76c0 Merge branch '3.1.x'
Closes gh-36421
1 year ago
Johnny Lim 9b38db6672 Polish PemSslBundleProperties
See gh-36281
1 year ago
Andy Wilkinson f33874e98e Allow auto-configured applicationTaskExecutor to use virtual threads
With this commit, when virtual threads are enabled, the auto-configured
applicationTaskExecutor changes from a ThreadPoolTaskExecutor to a
SimpleAsyncTaskExecutor with virtual threads enabled.

As before, any TaskDecorator bean is applied to the auto-configured
executor and the spring.task.execution.thread-name-prefix property is
applied. Other spring.task.execution.* properties are ignored as they
are specific to a pool-based executor.

Closes gh-35710
1 year ago
Stephane Nicoll 783bfb62e2 Merge branch '3.1.x'
Closes gh-36420
1 year ago
Stephane Nicoll d2912c6442 Update copyright year of changed files
See gh-36306
1 year ago
Christoph Dreis 8321887d6a Fix typos
See gh-36306
1 year ago
Andy Wilkinson f2a50919a9 Merge branch '3.1.x'
Closes gh-36410
1 year ago
Andy Wilkinson 3f4474031f Merge branch '3.0.x' into 3.1.x
Closes gh-36409
1 year ago
Pengfei-Lu 8697d9ddd5 Correct conditions on auto-configured JacksonJsonpMapper
See gh-36109

Signed-off-by: Pengfei-Lu <459360594@qq.com>
1 year ago
Andy Wilkinson 07be2990a2 Merge branch '3.1.x'
Closes gh-36294
1 year ago
Andy Wilkinson 0d06747b41 Fix problem with @ and : chars in Mongo username and password
Fixes gh-36261
1 year ago
Andy Wilkinson 3b90919313 Polish RestClient auto-config and tests
For consistency, replace webClient and WebClient with restClient and
RestClient. This also address a bean name clash between
RestClientAutoConfiguration's RestClient.Builder bean and
WebClientAutoConfiguration's WebClient.Builder bean that were both
previously named webClientBuilder.
1 year ago
Spencer Gibb 89880a773c Add RestClientAutoConfiguration to AutoConfiguration.imports
See gh-36249
1 year ago