Commit Graph

1903 Commits

Author SHA1 Message Date
Phillip Webb
8ec61b9870 Polish 'Refactor @ConfigurationProperties that only use prefix'
See gh-43917
2025-01-24 14:59:32 -08:00
Yanming Zhou
c1d97ffe16 Refactor @ConfigurationProperties that only use prefix
See gh-43917

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
2025-01-24 14:58:36 -08:00
Phillip Webb
a49719d73e Use consistent exception messages in Assert calls
Update `Assert` calls to consistently use messages of the form
"'item' must [not] ...".

Closes gh-43780
2025-01-11 21:18:47 -08:00
Johnny Lim
4d15ee5bf0 Polish
See gh-43498
2024-12-13 13:29:20 -08: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
fcd58bdb53 Merge branch '3.3.x'
Closes gh-43059
2024-11-07 12:21:47 +00:00
Andy Wilkinson
519ec86c99 Merge branch '3.2.x' into 3.3.x
Closes gh-43058
2024-11-07 11:26:37 +00:00
Andy Wilkinson
0be9fd91ab Separate type customization from additional DataSource configuration
Closes gh-43054
2024-11-07 11:03:48 +00:00
Phillip Webb
39da14ea80 Update web services documentation and samples
Closes gh-42887
2024-10-25 18:06:47 -07:00
Phillip Webb
2208c67f22 Add 'Global HTTP Client Configuration' reference docs section
Update documentation with information on how to configure the HTTP
client globally.

Closes gh-42888
2024-10-25 18:06:47 -07:00
Phillip Webb
a92001130f Deprecate ClientHttpRequestFactories
Deprecate `ClientHttpRequestFactories` and refactor its internals to
delegate to the new `ClientHttpRequestFactoryBuilder` interface.

Closes gh-36266
2024-10-25 02:45:35 -07:00
Phillip Webb
6356e904fc Update web services support to use ClientHttpRequestFactoryBuilder
Add a new `WebServiceMessageSenderFactory` factory interface to replace
`HttpWebServiceMessageSenderBuilder`. The factory provides a general
purpose way of creating `WebServiceMessageSender` instances, but most
typically will be `ClientHttpRequestMessageSender` created from a
`ClientHttpRequestFactoryBuilder`.

A new `httpMessageSenderFactory` method has been added to the
`WebServiceTemplateBuilder` class. This allows any sender to be
plugged into the template.

Closes gh-42886
2024-10-25 02:45:35 -07:00
Phillip Webb
0a4ac283d0 Rename RestTemplateBuilder 'set' methods
Rename `RestTemplateBuilder` methods for consistency:

* `setConnectTimeout` -> `connectTimeout`
* `setReadTimeout` -> `readTimeout`
* `setSslBundle` -> `sslBundle`

Closes gh-42884
2024-10-25 02:45:35 -07:00
Phillip Webb
2f5f224559 Merge branch '3.3.x' 2024-10-18 10:49:15 -07:00
Phillip Webb
223886ff37 Merge branch '3.2.x' into 3.3.x 2024-10-18 10:48:51 -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
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
Yanming Zhou
87cc2efb64 Strengthen package-like assertions
See gh-42682
2024-10-16 16:52:13 -07:00
Phillip Webb
d9668672f8 Merge branch '3.3.x'
Closes gh-42721
2024-10-16 14:14:50 -07:00
Tran Ngoc Nhan
6be4a07e05 Fix typos and formatting errors in documentation
See gh-42718
2024-10-16 14:14:16 -07:00
Moritz Halbritter
c36d5297d2 Merge branch '3.3.x'
Closes gh-42673
2024-10-14 15:54:59 +02:00
Moritz Halbritter
4d29800e32 Merge branch '3.2.x' into 3.3.x
Closes gh-42672
2024-10-14 15:54:37 +02:00
Moritz Halbritter
0a3418cd40 Document how Map properties are bound from environment variables
Closes gh-40936
2024-10-14 15:47:47 +02:00
Moritz Halbritter
bd036eb29f Add MyCustomFormat.kt example to documentation
Closes gh-42594
2024-10-11 13:45:16 +02:00
Phillip Webb
8aee3e1e92 Allow structure logging JSON to be customized
Introduce a new `StructureLoggingJsonMembersCustomizer` interface as
well as additional properties that can be used to customize the JSON
produced with structured logging.

Closes gh-42486
2024-10-10 23:52:34 -07:00
Andy Wilkinson
3c095b4ec2 Prefer DynamicPropertyRegistar to DynamicPropertyRegistry
Closes gh-41996
2024-10-10 15:25:44 +01:00
Moritz Halbritter
bc3bcd68d6 Polish "Added documentation for configuring OpenTelemetry SDK logs"
See gh-41825
2024-09-05 16:59:19 +02:00
Phillip Webb
b05336d218 Merge branch '3.3.x' 2024-09-03 21:05:05 -07:00
Andy Wilkinson
2f9bc79fff Merge branch '3.3.x'
Closes gh-42096
2024-09-03 10:10:42 +01:00
Andy Wilkinson
d2f0b2b090 Correct package statements of Testing section's Kotlin snippets
Closes gh-42094
2024-09-03 10:05:19 +01:00
Andy Wilkinson
2ecb4ebd49 Ignore non-default candidates in type-based matching
Closes gh-22403
2024-08-20 14:36:12 +01:00
Stéphane Nicoll
f3693070ca Merge branch '3.3.x'
Closes gh-41950
2024-08-20 08:43:58 +02:00
Stéphane Nicoll
d62a5ac947 Merge branch '3.2.x' into 3.3.x
Closes gh-41949
2024-08-20 08:43:45 +02:00
Stéphane Nicoll
8243c7ba98 Polish "Harmonize web handler code sample"
See gh-41948
2024-08-20 08:41:54 +02:00
Furkan ÖZBEK
bfce07894c Harmonize web handler code sample
See gh-41948
2024-08-20 08:40:53 +02: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
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
Moritz Halbritter
bf2950c045 Add support for structured logging
Update Logback and Log4j2 integrations to support structured logging.
Support for the ECS and Logstash JSON formats is provided out-of-the-box
and the `StructuredLogFormatter` interface may be used to if further
custom formats need to be supported.

Closes gh-5479

Co-authored-by: Phillip Webb <phil.webb@broadcom.com>
2024-07-15 11:45:41 +01:00
Andy Wilkinson
cddf92e047 Polish "Deprecate @MockBean and @SpyBean"
See gh-39864
2024-07-12 13:49:11 +01:00
Jakob Wanger
24763940a0 Deprecate @MockBean and @SpyBean
- Deprecate Deprecate @MockBean and @SpyBean in favor of Spring
  Framework 6.2's @MockitoBean and @MockitoSpy
- Migrate usages of @MockBean and @SpyBean to @MockitoBean and
  @MockitoSpy

Signed-off-by: Jakob Wanger <jakobwanger@gmail.com>

See gh-39864
2024-07-12 12:18:01 +01:00
Stéphane Nicoll
156237227c Migrate MockMvc tests to MockMvcTester
See gh-41198
2024-07-03 15:09:10 +02:00
Stéphane Nicoll
e5859aedaf Add auto-configuration for MockMvcTester
This commit adds auto-configuration and documentation for MockMvcTester,
a wrapper of MockMvc that provides AssertJ integration as well as a
fluent API to build requests. The main differences compared to the
regular MockMvc are as follows:

* No need for static imports for building requests and define assertions
* No need to handle unchecked exception as they can be asserted instead
* Support for converting the response body to data types

Closes gh-41198
2024-07-03 15:09:10 +02:00
Andy Wilkinson
373f4d7512 Merge branch '3.3.x' 2024-06-27 14:02:05 +01:00
Andy Wilkinson
0f830e91c9 Polish imports in testing doc examples
See gh-38361
2024-06-27 14:01:40 +01:00
Stéphane Nicoll
17ca0421e7 Upgrade to HtmlUnit 4.2.0 and Selenium HtmlUnit 4.20
Closes gh-41178
Closes gh-41179
2024-06-20 20:18:23 +01:00