Go to file
Stéphane Nicoll 28f62abda4 Use the field name as a fallback qualifier for Bean Overriding
This commit harmonizes how a candidate bean definition is determined
for overriding using `@TestBean`, `@MockitoBean`, and `@MockitoSpyBean`.

Previously, a qualifier was necessary even if the name of the annotated
field matches the name of a candidate. After this commit, such candidate
will be picked up transparently, the same it is done for regular
autowiring.

This commit also reviews the documentation of the feature as considering
the field means that its name is taken into account to compute a cache
key if by-type lookup is requested.

Closes gh-32939
2024-06-11 11:30:01 +02:00
.github
buildSrc Merge branch '6.1.x' 2024-06-11 09:11:42 +02:00
ci
framework-api
framework-bom
framework-docs Use the field name as a fallback qualifier for Bean Overriding 2024-06-11 11:30:01 +02:00
framework-platform Upgrade to Micrometer 1.13.1 2024-06-11 09:13:42 +02:00
gradle Merge branch '6.1.x' 2024-06-10 10:48:49 +01:00
integration-tests
spring-aop Merge branch '6.1.x' 2024-06-06 20:47:02 +02:00
spring-aspects Merge branch '6.1.x' 2024-06-06 20:47:02 +02:00
spring-beans
spring-context Polishing (aligned with main) 2024-06-11 09:07:09 +02:00
spring-context-indexer
spring-context-support
spring-core Merge branch '6.1.x' 2024-06-11 06:53:22 +02:00
spring-core-test
spring-expression
spring-instrument
spring-jcl
spring-jdbc Do not swallow exceptions on failing to release a savepoint 2024-06-09 13:08:57 +02:00
spring-jms
spring-messaging
spring-orm Merge branch '6.1.x' 2024-06-06 10:06:24 +02:00
spring-oxm
spring-r2dbc
spring-test Use the field name as a fallback qualifier for Bean Overriding 2024-06-11 11:30:01 +02:00
spring-tx
spring-web Polishing 2024-06-11 10:20:14 +02:00
spring-webflux Avoid issues with system line separator in tests 2024-06-05 12:36:58 +02:00
spring-webmvc Handle ResponseStatusException thrown by MVC functional endpoints 2024-06-06 14:21:17 +02:00
spring-websocket
src Revert "Disable warnings for deprecated for removal in Eclipse" 2024-06-06 11:44:09 +02:00
.editorconfig
.gitattributes
.gitignore
.sdkmanrc
CODE_OF_CONDUCT.adoc Update code-of-conduct email 2024-06-10 10:48:06 +01:00
CONTRIBUTING.md Update code-of-conduct email 2024-06-10 10:48:06 +01:00
LICENSE.txt
README.md Merge branch '6.1.x' 2024-06-10 10:48:49 +01:00
SECURITY.md
build.gradle
gradle.properties
gradlew
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.