Commit Graph
608 Commits
Author SHA1 Message Date
Phillip Webb 2e79fc01cb Allow URL to be specified when working with HtmlUnit beans
Update `@AutoConfigureMockMvc` to move HtmlUnit configuration under
a dedicated attribute and provide support for configuring the URL
that is used.

Closes gh-47857
2025-10-29 20:47:42 -07:00
Stéphane Nicoll 30a6b50e82 Align naming change for Jackson components
This commit polishes the renaming of JsonComponent to JacksonComponent
and the use of JacksonModule instead of Module in Jackson 2.

This also adds integration tests that use a JacksonComponent with
WebMvcTest and WebFluxTest.

Closes gh-47864
2025-10-29 16:58:16 +01:00
Andy Wilkinson 4e86ff060f Adapt to deprecations in latest Framework snaphots
See gh-47850
2025-10-29 11:34:30 +00:00
Andy Wilkinson 578b199b6d Merge branch '3.5.x'
Closes gh-47860
2025-10-29 10:25:10 +00:00
Andy Wilkinson b2d2fb82c0 Align test class name with name of class under test 2025-10-29 10:15:58 +00:00
Stéphane Nicoll 9bf712349f Adapt to changes in Spring Data JDBC 4.0.0 snapshots 2025-10-28 17:44:51 +01:00
Stéphane Nicoll a92b177698 Polish "Upgrade to Elasticsearch Client 9.2.0"
This commit configures the new Jackson 3 support for Elasticsearch if
available. As for other auto-configurations, Jackson 2 is still
supported in a deprecated fashion.

Closes gh-47847
2025-10-28 15:27:06 +01:00
Stéphane Nicoll 18335a6bba Polish 2025-10-28 15:12:39 +01:00
Stéphane Nicoll 7bde0e65f1 Fix typos
Closes gh-47818
2025-10-27 14:55:39 +01:00
Andy Wilkinson bf8e0c45a8 Allow customizations of default customizers to be overridden
Previously, the default client and server HTTP message converter
customizers were ordered with lowest precedence. This made it
impossible to guarantee that another customizer would be able to go
after the default customizers, preventing their customizations from
being reliably overridden.

This commit updates the definitions of the default customizers to
order them at 0. This allows additional customizers to be ordered
either before or after them. Usage of the customizers is now always
ordered (previously Spring MVC's was not).

See gh-47798
2025-10-27 12:41:31 +00:00
Andy Wilkinson 5fbdfad11e Remove test dependency from spring-boot-security
Closes gh-47813
2025-10-27 10:39:29 +00:00
Andy Wilkinson 198cba7177 Fix spring-boot-jackson2's test auto-configuration
This commit is a follow-on from 14c5ac0. It fixes a similar problem
with @AutoConfigureJsonTesters that is also apparent when using
@JsonTest.

Fixes gh-47811

The org.springframework.boot.test-auto-configuration plugin has been
added so that test auto-configuration imports files are checked at
build time, hopefully catching this sort of problem earlier in the
future.

Closes gh-47812
2025-10-27 10:04:25 +00:00
Moritz Halbritter 14c5ac0202 Fix Jackson2AutoConfiguration import for @AutoConfigureJson
Closes gh-47811
2025-10-27 10:25:12 +01:00
Stéphane Nicoll 8985af2fcc Relocate Neo4jReactiveHealthIndicatorIntegrationTests 2025-10-24 17:51:06 +02:00
Stéphane Nicoll d1ae453824 Restore support of deprecated containers
This commit restore the service connection support for Testcontainers
implementations that were deprecated as part of TC 2.0. Previously,
only the new location was taken into account.

Closes gh-47796
2025-10-24 17:51:06 +02:00
Andy Wilkinson f72da4c77a Fix Actuator with Jackson 2 but no spring-web
Previously, if Actuator was being used in a non-web app such that
spring-web was not on the classpath, the app would fail to start
if Jackson 2 was present. This occured as the auto-configuration
for the EndpointJackson2ObjectMapper tried to use spring-web's
Jackson2ObjectMapperBuilder that was not present.

This commit updates the auto-configuration to back off when
Jackson2ObjectMapperBuilder is absent, aligning it with the
behavior of JacksonEndpointAutoConfiguration in 3.5.

Fixes gh-47788
2025-10-24 14:39:47 +01:00
Florian Waltenberger 63ec0fc18a Fix JacksonTesterTestAutoConfiguration javadoc
See gh-47784

Signed-off-by: Florian Waltenberger <waltenberger.florian@gmail.com>
2025-10-24 15:36:51 +02:00
Stéphane Nicoll 728cb95a17 Fix formatting 2025-10-23 14:12:50 +02:00
Andy Wilkinson 1275595f0b Make spring-boot-transaction an api dependency of spring-boot-jdbc
Closes gh-47764
2025-10-23 12:54:37 +01:00
Andy Wilkinson aa95282290 Polish @since tags
Closes gh-47779
2025-10-23 12:48:58 +01:00
Stéphane Nicoll b965ae1f98 Add deprecation note for Jackson properties.
This commit adds metadata for spring.jackson.generator and
spring.jackson.parser to hint at a partial replacement.

Closes gh-47778
2025-10-23 11:44:25 +02:00
Yanming Zhou 97e7753cdb Configure devtools to set trace probability to 100% by default
See gh-47721

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
2025-10-23 11:28:38 +02:00
Stéphane Nicoll ffc822d852 Revisit metrics and tracing test properties
This commit renames 'spring.test.metrics.auto-configure' and
'spring.test.tracing.auto-configure' for consistency with the non-test
properties. It also adds a configuration metadata entry for
'spring.test.observability.auto-configure' that's superseded by these
two properties.

Closes gh-47776
2025-10-23 11:18:53 +02:00
Stéphane Nicoll 3b8a35f531 Remove configuration-properties plugin
The webflux-test module only has manual metadata so we shouldn't use
the plugin as it kicks of the annotation processor and that doesn't
generate anything.
2025-10-23 09:26:29 +02:00
Stéphane Nicoll 152635159c Complete modules to be used for generating the changelog
See gh-47758
2025-10-23 08:46:27 +02:00
Phillip Webb 770c94607c Refine 'Introduce a shared abstraction for database initialization'
Use test fixtures to keep getSettings() package-private

See gh-46213
2025-10-22 19:54:46 -07:00
Phillip Webb 84274a2b40 Polish 'Introduce a shared abstraction for database initialization'
See gh-46213
2025-10-22 13:37:20 -07:00
Yanming Zhou 001230c389 Introduce a shared abstraction for database initialization
Add a new shared abstraction used by Spring Batch,
Spring Integration, Spring Session and Quartz.

See gh-46213

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
2025-10-22 13:36:39 -07:00
Andy Wilkinson cb976ba38d Remove @Primary for auto-configured CBORMapper
Closes gh-47641
2025-10-22 16:27:35 +01:00
Varun Patni f84b17c751 Migrate from Dokkatoo to Dokka
This commit migrates from Dokkatoo to Dokka for generation of Kotlin
API documentation.

See gh-47706

Signed-off-by: Varun Patni <varun.patni1@gmail.com>
2025-10-22 15:50:29 +01:00
Moritz Halbritter 0ffc4649a6 Polish 2025-10-22 16:43:50 +02:00
Moritz Halbritter 5862d70725 Polish description of 'spring.http.converters.preferred-json-mapper' 2025-10-22 16:43:12 +02:00
Andy Wilkinson 4e94f26935 Support JMX endpoints when only Jackson 2 is present
Closes gh-47688
2025-10-22 14:40:59 +01:00
Andy Wilkinson 8292954076 Revert "Use spring.restdocs as prefix for Spring REST Docs properties"
This reverts commits a502f4d and 661574b.

Closes gh-47481
2025-10-22 13:27:14 +01:00
Andy Wilkinson 635e766aaf Make it easier to create executable and deployable war
Closes gh-46944
2025-10-22 10:13:46 +01:00
Phillip Webb 350179901f Merge branch '3.5.x'
Closes gh-47751
2025-10-21 15:04:57 -07:00
Phillip Webb 2210252c75 Drop @TestAutoConfiguration annotation
Closes gh-47746
2025-10-21 11:18:01 -07:00
Stéphane Nicoll eca5bfc204 Upgrade to Flyway 11.14.0
This commit also suppresses deprecations introduced in Flyway 11.13.3.
A future release of Flyway should provide an alternative API to those
that are now deprecated and that we are still using.

See gh-47742
Closes gh-47562
2025-10-21 14:23:57 +02:00
Andy Wilkinson c069e924fc Fix codec customization with AutoConfigureWebTestClient
Fixes gh-47697
2025-10-21 12:37:15 +01:00
Stéphane Nicoll aceaee89ee Polish "Replace BaseUrl with LocalTestWebServer"
See gh-47680
2025-10-21 11:08:48 +02:00
Vedran Pavic b3133d4ec1 Disable LiveReload server by default
Change the default value of the configuration property
`spring.devtools.livereload.enabled` to `false`.

See gh-47387

Signed-off-by: Vedran Pavic <vedran@vedranpavic.com>
2025-10-20 18:10:47 -07:00
Phillip Webb 41a399c5ae Replace BaseUrl with LocalTestWebServer
Replace `BaseUrl` and `BaseUrlProvider` provider code with a more
targeted `LocalTestWebServer` class.

The `LocalTestWebServer` can be used to obtain the url of the locally
running server, or provide `UriBuilderFactory` or `UriBuilder`
instances base on it.

This commit also updates the MockMVC HTML Unit auto-configuration to
directly use `localhost` as the base URL.

Closes gh-47680
2025-10-20 17:44:51 -07:00
Phillip Webb de39cc6659 Adapt to upstream Spring Security changes
Adapt to https://github.com/spring-projects/spring-security/issues/16300

See gh-47499
2025-10-20 11:21:24 -07:00
Stéphane Nicoll 9c969f91be Polish "Remove Spring Pulsar Reactive support"
See gh-47707
2025-10-20 18:15:34 +02:00
onobc 4aaa1dfb5f Remove Spring Pulsar Reactive support
This removes the auto-configuration for Spring Pulsar Reactive.

Consolidates the PulsarConfiguration into the PulsarAutoConfiguration because
there is no longer a need to factor out the common components between Spring
Pulsar and Spring Pulsar Reactive.

See gh-47707

Signed-off-by: onobc <chris.bono@gmail.com>
2025-10-20 18:15:34 +02:00
Moritz Halbritter 64136a9901 Remove public modifier from referenced configurations in auto-configurations
Closes gh-47715
2025-10-20 15:18:11 +02:00
Brian Clozel 90c656c529 Merge branch '3.5.x'
Closes gh-47718
2025-10-20 14:32:35 +02:00
Stéphane Nicoll 1b1801adb1 Polish 2025-10-20 13:33:00 +02:00
Yanming Zhou 609b0b444e Use JsonMapper instead of ObjectMapper where feasible
See gh-47503

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
2025-10-20 13:16:52 +02:00
Stéphane Nicoll f1178e6481 Remove management.observations.long-task-timer.enabled
This commit removes the m.observations.long-task-timer.enabled
property in favor of the existing m.metrics.observations.ignored-meters
property.

Closes gh-45725
2025-10-20 12:56:55 +02:00