Go to file
Sam Brannen cd2fbb1ec5 Properly resolve @⁠TestBean factory method within class hierarchy
Prior to this commit, the search algorithm used to locate a @⁠TestBean
factory method within a test class hierarchy incorrectly found factory
methods declared in subclasses or nested test classes "below" the class
in which the @⁠TestBean field was declared. This resulted in "duplicate
bean override" failures for @⁠TestBean overrides which are clearly not
duplicates but rather "overrides of an override".

This commit ensures that @⁠TestBean factory method resolution is
consistent in type hierarchies as well as in enclosing class
hierarchies (for @⁠Nested test classes) by beginning the search for a
factory method in the class which declares the @⁠TestBean field.

Closes gh-34204
2025-01-07 17:20:52 +02:00
.github Update actions in CI build 2024-12-31 09:49:43 +01:00
buildSrc
framework-api Upgrade to Gradle 8.12 2024-12-21 16:02:15 +01:00
framework-bom
framework-docs Properly resolve @⁠TestBean factory method within class hierarchy 2025-01-07 17:20:52 +02:00
framework-platform Upgrade to AssertJ 3.27.2 2025-01-05 12:28:23 +02:00
gradle Upgrade to Gradle 8.12 2024-12-21 16:02:15 +01:00
integration-tests
spring-aop Update copyright headers to 2025 2025-01-05 17:00:47 +02:00
spring-aspects
spring-beans Fix a typo 2024-12-17 11:40:47 +01:00
spring-context List constructor arg initialized correctly 2024-12-30 14:47:26 +00:00
spring-context-indexer
spring-context-support
spring-core Update copyright headers to 2025 2025-01-05 17:00:47 +02:00
spring-core-test
spring-expression Support varargs-only MethodHandle as SpEL function 2024-12-18 17:59:14 +01:00
spring-instrument
spring-jcl
spring-jdbc
spring-jms
spring-messaging Apply Checkstyle MethodParamPadCheck module 2024-12-30 09:02:06 +01:00
spring-orm Avoid logger serialization behind shared EntityManager proxy 2024-12-12 19:48:21 +01:00
spring-oxm
spring-r2dbc
spring-test Properly resolve @⁠TestBean factory method within class hierarchy 2025-01-07 17:20:52 +02:00
spring-tx
spring-web Change the description for the uri client request observation 2025-01-07 09:02:25 +01:00
spring-webflux Change the description for the uri client request observation 2025-01-07 09:02:25 +01:00
spring-webmvc Improve logging in ReactiveTypeHandler 2025-01-06 12:13:29 +00:00
spring-websocket
src Apply Checkstyle MethodParamPadCheck module 2024-12-30 09:02:06 +01:00
.editorconfig
.gitattributes
.gitignore
.sdkmanrc Upgrade to Java 17.0.13 2024-12-30 12:15:24 +01:00
CONTRIBUTING.md Update CONTRIBUTING guidelines for DCO 2025-01-07 09:55:36 +01:00
LICENSE.txt
README.md
SECURITY.md
build.gradle Upgrade to Gradle 8.12 2024-12-21 16:02:15 +01:00
gradle.properties Next development version (v6.2.2-SNAPSHOT) 2024-12-12 10:53:14 +01:00
gradlew Upgrade to Gradle 8.12 2024-12-21 16:02:15 +01:00
gradlew.bat
import-into-eclipse.md
import-into-idea.md
settings.gradle
update_copyright_headers.sh

README.md

Spring Framework Build Status Revved up by Develocity

This is the home of the Spring Framework: the foundation for all Spring projects. Collectively the Spring Framework and the family of Spring projects are often referred to simply as "Spring".

Spring provides everything required beyond the Java programming language for creating enterprise applications for a wide range of scenarios and architectures. Please read the Overview section of the reference documentation for a more complete introduction.

Code of Conduct

This project is governed by the Spring Code of Conduct. By participating, you are expected to uphold this code of conduct. Please report unacceptable behavior to spring-code-of-conduct@spring.io.

Access to Binaries

For access to artifacts or a distribution zip, see the Spring Framework Artifacts wiki page.

Documentation

The Spring Framework maintains reference documentation (published and source), GitHub wiki pages, and an API reference. There are also guides and tutorials across Spring projects.

Micro-Benchmarks

See the Micro-Benchmarks wiki page.

Build from Source

See the Build from Source wiki page and the CONTRIBUTING.md file.

Continuous Integration Builds

Information regarding CI builds can be found in the Spring Framework Concourse pipeline documentation.

Stay in Touch

Follow @SpringCentral, @SpringFramework, and its team members on 𝕏. In-depth articles can be found at The Spring Blog, and releases are announced via our releases feed.

License

The Spring Framework is released under version 2.0 of the Apache License.