Go to file
Stephane Nicoll 8d88e29173 Add qualified injection points for MVC and WebFlux infrastructure
Previously, the infrastructure provided by WebMvcConfigurationSupport
and WebFluxConfigurationSupport can lead to unexpected results due to
the lack of qualifier for certain dependencies. Those configuration
classes refer to very specific beans, yet their injection points do not
define such qualifiers. As a result, if a candidate exists for the
requested type, the context will inject the existing bean and will
ignore a most specific one as such constraint it not defined. This can
be easily reproduced by having a primary Validator whereas a dedicated
"mvcValidator" is expected. Note that a parameter name is in no way a
constraint as the name is only used as a fallback when a single
candidate cannot be determined.

This commit provides explicit @Qualifier metadata for such injection
points, renaming the parameter name in the process to clarify that it
isn't relevant for the proper bean to be resolved by the context.

Closes gh-23887
2019-10-30 15:07:23 +01:00
.github Add "Affects" field to issue template 2019-01-18 15:27:43 -05:00
buildSrc Polish contribution 2019-10-25 15:26:20 +02:00
framework-bom Remove scope information from published BOM 2019-09-18 15:27:59 +02:00
gradle Add opt-in support for remote build cache and pushing to it from CI 2019-10-29 12:46:33 +01:00
integration-tests Stop Created-By manifest header from causing a test task cache miss 2019-10-25 13:52:48 +02:00
spring-aop Merge branch '5.1.x' 2019-09-25 23:13:49 +02:00
spring-aspects Merge branch '5.1.x' 2019-09-25 12:43:24 +02:00
spring-beans Expose primary flag on BeanDefinitionBuilder 2019-10-30 01:04:41 +01:00
spring-context Polishing 2019-10-30 14:31:46 +01:00
spring-context-indexer Add blank line between java and javax imports 2019-09-16 13:41:59 +02:00
spring-context-support Restore TransactionOperations Kotlin API compatibilty 2019-09-29 19:31:12 +02:00
spring-core Polishing 2019-10-30 14:31:46 +01:00
spring-expression Polish contribution 2019-09-19 22:02:19 +02:00
spring-instrument URL Cleanup 2019-03-21 23:49:28 -05:00
spring-jcl Use dependency management in Framework build 2019-09-02 18:01:09 +02:00
spring-jdbc Avoid Connection.isReadOnly() call in resetConnectionAfterTransaction 2019-10-30 00:25:17 +01:00
spring-jms Add blank line between java and javax imports 2019-09-16 13:41:59 +02:00
spring-messaging Polishing 2019-10-30 14:31:46 +01:00
spring-orm Avoid Connection.isReadOnly() call in resetConnectionAfterTransaction 2019-10-30 00:25:17 +01:00
spring-oxm Allow genJaxb's output to be cached when checkout locations differ 2019-09-25 16:44:01 +02:00
spring-test Nullability refinements 2019-10-30 00:26:11 +01:00
spring-tx Add tests for cancellation of transactional streams 2019-10-25 17:16:33 +02:00
spring-web Polishing 2019-10-30 14:31:46 +01:00
spring-webflux Add qualified injection points for MVC and WebFlux infrastructure 2019-10-30 15:07:23 +01:00
spring-webmvc Add qualified injection points for MVC and WebFlux infrastructure 2019-10-30 15:07:23 +01:00
spring-websocket Fix failing test after previous commit 2019-10-30 07:03:51 +00:00
src Expose maxInMemorySize via CodecConfigurer 2019-10-29 12:33:16 +00:00
.editorconfig Add EditorConfig 2017-06-12 08:07:54 +02:00
.gitattributes Ensure line endings for binary files are not modified in Git 2019-10-18 11:56:18 +02:00
.gitignore Rename non-Framework project modules 2019-08-21 14:32:25 +02:00
.mailmap Change gopivotal.com to pivotal.io 2014-10-05 18:12:50 +02:00
CODE_OF_CONDUCT.adoc URL Cleanup 2019-03-21 15:08:55 -05:00
CONTRIBUTING.md Update advice on creating issue vs pull request 2019-09-11 16:16:41 +01:00
LICENSE.txt Add LICENSE.txt file 2019-08-20 22:01:12 +02:00
README.md Link build status badge to build overview page 2019-09-25 17:21:21 +02:00
SECURITY.md Create SECURITY.md 2019-05-23 11:36:52 -04:00
build.gradle Latest dependency updates (Tomcat 9.0.27, Undertow 2.0.27, RxJava 2.2.13, Gson 2.8.6, Apache Johnzon 1.2.1, Hibernate ORM 5.4.8, EclipseLink 2.7.5, H2 1.4.200, POI 4.1.1, Quartz 2.3.2, WebJars Locator 0.42, HtmlUnit 2.36, Checkstyle 8.26, Mockito 3.1, Objenesis 3.1) 2019-10-30 00:26:45 +01:00
gradle.properties Enable local build cache for buildSrc and main project 2019-09-30 15:04:14 +02:00
gradlew Upgrade to Gradle 5.6 2019-08-17 19:20:36 +02:00
gradlew.bat Revert "Upgrade to Gradle 5.6.3" 2019-10-18 10:38:40 +02:00
import-into-eclipse.md Fix Checkstyle violation 2019-09-30 18:31:13 +02:00
import-into-idea.md URL Cleanup 2019-03-21 15:08:55 -05:00
settings.gradle Polish contribution 2019-10-25 15:26:20 +02:00

README.md

Spring Framework Build Status

This is the home of the Spring Framework: the foundation for all Spring projects. Collectively the Spring Framework and the family of Spring projects is 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 as reference 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@pivotal.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.

Build from Source

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

Stay in Touch

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

License

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