Go to file
Nick 50ccb1bfcd Avoid duplicate JCacheOperationSource bean registration in <cache:annotation-driven />
In our application we use XML context and <cache:annotation-driven />
declaration. Also we disable bean definition duplication by setting
GenericApplicationContext.setAllowBeanDefinitionOverriding(false) in an
ApplicationContextInitializer. This combination leads to a
BeanDefinitionOverrideException because the
DefaultJCacheOperationSource bean is registered twice.

 - once for: parserContext.getReaderContext().registerWithGeneratedName(sourceDef);
 - once for: parserContext.registerBeanComponent(new BeanComponentDefinition(sourceDef, sourceName));

This commit refactors JCacheCachingConfigurer.registerCacheAspect(...)
so that the JCacheOperationSource bean is registered only once.

Closes gh-27499
2021-10-12 12:05:30 +02:00
.github
buildSrc
ci Upgrade CI to github-release resource 1.5.5 2021-10-11 16:18:35 +02:00
framework-bom
gradle
integration-tests
spring-aop
spring-aspects
spring-beans Upgrade to Checkstyle 9.0 and spring-javaformat 0.0.29 2021-10-06 12:11:19 +02:00
spring-context Avoid duplicate JCacheOperationSource bean registration in <cache:annotation-driven /> 2021-10-12 12:05:30 +02:00
spring-context-indexer
spring-context-support
spring-core Polish contribution 2021-10-11 15:31:40 +02:00
spring-expression
spring-instrument
spring-jcl
spring-jdbc
spring-jms
spring-messaging Upgrade to Checkstyle 9.0 and spring-javaformat 0.0.29 2021-10-06 12:11:19 +02:00
spring-orm
spring-oxm
spring-r2dbc
spring-test Allow default CacheAwareContextLoaderDelegate configuration via system property 2021-10-11 14:59:09 +02:00
spring-tx Upgrade to Checkstyle 9.0 and spring-javaformat 0.0.29 2021-10-06 12:11:19 +02:00
spring-web Apply value formatting to resolved exceptions 2021-10-11 11:14:02 +01:00
spring-webflux Polishing 2021-10-08 20:41:51 +02:00
spring-webmvc Apply value formatting to resolved exceptions 2021-10-11 11:14:02 +01:00
spring-websocket
src Indent with tabs instead of spaces 2021-10-06 15:42:52 +02:00
.editorconfig
.gitattributes
.gitignore
.mailmap
CODE_OF_CONDUCT.adoc
CONTRIBUTING.md
LICENSE.txt
README.md
SECURITY.md
build.gradle Upgrade to Mockito 4 2021-10-10 23:26:07 +02:00
gradle.properties
gradlew
gradlew.bat
import-into-eclipse.md
import-into-idea.md
settings.gradle

README.md

Spring Framework Build Status Revved up by Gradle Enterprise

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 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.

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 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.