Go to file
Sam Brannen 099b10d23b Honor presence of @WebAppConfiguration in ServTEL
The previous commit for issue SPR-11144 revealed a bug in
ServletTestExecutionListener (STEL). Specifically, STEL acted on the
fact that the ApplicationContext for a given TestContext was an
instance of WebApplicationContext. This behavior could potentially
break test code from previous releases of the Spring Framework that
relied on a custom setup of the RequestAttributes in the
RequestContextHolder with a custom WebApplicationContext ContextLoader.

This commit addresses this issue by ensuring that STEL only comes into
play if the test class is annotated with @WebAppConfiguration (for
prepareTestInstance() and beforeTestMethod()) or if the TestContext
attribute named RESET_REQUEST_CONTEXT_HOLDER_ATTRIBUTE is set to
Boolean.TRUE (for afterTestMethod()).

Issue: SPR-11144
2013-12-10 23:49:58 +01:00
.settings/gradle Remove spring-asm and inline ASM 4 into spring-core 2012-08-10 00:36:49 +02:00
buildSrc/src/main Fix MergePlugin 2013-05-22 14:57:22 -05:00
gradle Upgrade to Gradle 1.9 2013-11-20 13:14:57 -08:00
spring-aop/src Fixed detection of generic types and qualifier annotations on scoped-proxy factory methods 2013-12-08 23:24:16 +01:00
spring-aspects Consistent whitespace after imports 2013-11-26 15:14:43 -08:00
spring-beans/src Fixed ExtendedBeanInfo and its tests to accept JDK 8 b117+ introspection results 2013-12-10 22:34:17 +01:00
spring-beans-groovy/src/main Polishing 2013-11-22 23:29:54 +01:00
spring-context Added tests for custom qualifier annotations on scoped @Bean methods 2013-12-10 22:35:34 +01:00
spring-context-support/src Fixed @since tag 2013-12-10 13:26:42 +01:00
spring-core/src Polishing 2013-12-10 12:00:32 +01:00
spring-expression Only consider "is" methods with boolean returns 2013-12-03 12:01:24 -08:00
spring-framework-bom Add a 'bill of materials' project for Maven users 2013-12-02 11:55:22 -08:00
spring-instrument/src Allow instrumentation to be used with Attach API 2013-11-20 10:39:24 -08:00
spring-instrument-tomcat/src Fix various javadoc warnings 2013-11-26 13:25:37 -08:00
spring-jdbc/src Polishing 2013-12-10 13:26:52 +01:00
spring-jms/src Fix various javadoc warnings 2013-11-26 13:25:37 -08:00
spring-messaging/src Collapse messaging.simp.handler into messaging.simp 2013-12-06 17:23:31 -05:00
spring-orm/src Established well-defined registration order for Hibernate package scanning 2013-12-10 16:47:17 +01:00
spring-orm-hibernate4/src Established well-defined registration order for Hibernate package scanning 2013-12-10 16:47:17 +01:00
spring-oxm Compatibility with XStream 1.4.5 2013-12-09 22:47:16 +01:00
spring-test Honor presence of @WebAppConfiguration in ServTEL 2013-12-10 23:49:58 +01:00
spring-tx/src Polishing (including removal of javadoc imports that show as package cycles in IntelliJ) 2013-12-02 23:57:00 +01:00
spring-web/src Add methods for static resolution of @ExceptionHandler 2013-12-09 08:19:17 -05:00
spring-webmvc/src Add methods for static resolution of @ExceptionHandler 2013-12-09 08:19:17 -05:00
spring-webmvc-portlet/src Fix various javadoc warnings 2013-11-26 13:25:37 -08:00
spring-webmvc-tiles3/src Consistent whitespace after imports 2013-11-26 15:14:43 -08:00
spring-websocket/src Introduced SockJsSession interface and moved SockJsSessionFactory and SockJsServiceConfig to sockjs.transport; added initialize(SockJsServiceConfig) method to TransportHandler interface; extracted TransportHandlingSockJsService from DefaultSockJsService; moved sockjs.support.frame to sockjs.frame and extracted (Default)SockJsFrameFormat from SockJsFrame; moved SockJsHttpRequestHandler to sockjs.support; removed Jackson 1.x support 2013-12-08 01:25:52 +01:00
src Document ControllerAdvice annotation 2013-12-04 17:14:55 +01:00
.gitignore Add .gradletasknamecache to .gitignore 2013-11-18 10:12:19 -08:00
CONTRIBUTING-DOCUMENTATION.adoc Update CONTRIBUTING-DOCUMENTATION.adoc 2013-11-04 15:56:48 -05:00
CONTRIBUTING.md Instruct contributors to branch from master 2013-05-28 13:54:14 +03:00
README.md Updated build instructions to refer to OpenJDK 8 build 100 2013-08-20 22:44:05 +02:00
build.gradle Introduced GuavaCacheManager as an alternative to ConcurrentMapCacheManager 2013-12-10 11:59:35 +01:00
gradle.properties Increment version to 4.0.0.BUILD-SNAPSHOT 2013-12-03 15:09:47 -08:00
gradlew Replace MaxPermSize use in build scripts 2013-06-03 14:09:33 -07:00
gradlew.bat Upgrade to Gradle 1.8 and propdeps 0.0.5 2013-11-19 16:24:42 -08:00
import-into-eclipse.bat Fixed URLs in import-into-eclipse scripts 2013-09-25 16:56:10 -04:00
import-into-eclipse.sh Fixed URLs in import-into-eclipse scripts 2013-09-25 16:56:10 -04:00
import-into-idea.md Skip creation of IDEA metadata for spring-aspects 2013-01-03 19:19:24 +01:00
settings.gradle Add a 'bill of materials' project for Maven users 2013-12-02 11:55:22 -08:00

README.md

Spring Framework

The Spring Framework provides a comprehensive programming and configuration model for modern Java-based enterprise applications - on any kind of deployment platform. A key element of Spring is infrastructural support at the application level: Spring focuses on the "plumbing" of enterprise applications so that teams can focus on application-level business logic, without unnecessary ties to specific deployment environments.

The framework also serves as the foundation for Spring Integration, Spring Batch and the rest of the Spring family of projects. Browse the repositories under the SpringSource organization on GitHub for a full list.

Downloading artifacts

See downloading Spring artifacts for Maven repository information. Unable to use Maven or other transitive dependency management tools? See building a distribution with dependencies.

Documentation

See the current Javadoc and reference docs.

Getting support

Check out the Spring forums and the spring and spring-mvc tags on Stack Overflow. Commercial support is available too.

Issue Tracking

Report issues via the Spring Framework JIRA. Understand our issue management process by reading about the lifecycle of an issue. Think you've found a bug? Please consider submitting a reproduction project via the spring-framework-issues GitHub repository. The readme there provides simple step-by-step instructions.

Building from source

The Spring Framework uses a Gradle-based build system. In the instructions below, ./gradlew is invoked from the root of the source tree and serves as a cross-platform, self-contained bootstrap mechanism for the build.

prerequisites

Git and OpenJDK 8 early access build 100 or later

Be sure that your JAVA_HOME environment variable points to the jdk1.8.0 folder extracted from the JDK download.

check out sources

git clone git://github.com/SpringSource/spring-framework.git

import sources into your IDE

Run ./import-into-eclipse.sh or read import-into-idea.md as appropriate.

Note: Per the prerequisites above, ensure that you have JDK 8 configured properly in your IDE.

install all spring-* jars into your local Maven cache

./gradlew install

compile and test, build all jars, distribution zips and docs

./gradlew build

... and discover more commands with ./gradlew tasks. See also the Gradle build and release FAQ.

Contributing

Pull requests are welcome; see the contributor guidelines for details.

Staying in touch

Follow @springframework and its team members on Twitter. In-depth articles can be found at the SpringSource team blog, and releases are announced via our news feed.

License

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