Go to file
Rossen Stoyanchev 0e3aa0eec4 Peek into the content for @RequestBody(required=false)
For @RequestBody(required=false), it is not sufficient to check if the
InputStream is null. This change reads the first byte of the request
InputStream to determine if the request body is empty or not.

If the InputStream implementation supports mark(int) and reset(), then
we use those. Otherwise we use PushbackInputStream to read and unread
the first byte.

All of this is done only if the required flag of @RequestBody is set
to "false" (default is "true").

Issue: SPR-9942
2012-10-31 21:15:15 -04:00
.settings/gradle Remove spring-asm and inline ASM 4 into spring-core 2012-08-10 00:36:49 +02:00
gradle/wrapper Restore GRADLE_OPTS from wrappers 2012-10-31 17:30:52 -07:00
spring-aop/src Throw on advise returning null for primitive type 2012-10-30 16:09:13 -07:00
spring-aspects Fix split package introduced by @EnableSpringConfigured 2012-10-26 14:01:29 +02:00
spring-beans/src Fix typos in Javadoc 2012-10-31 16:22:16 +01:00
spring-context Polish @Imports search code 2012-10-31 09:30:17 -07:00
spring-context-support/src added "repeatCount" bean property to Quartz SimpleTriggerFactoryBean 2012-07-04 23:22:01 +02:00
spring-core/src Improve #toString for AnnotationAttributes 2012-10-31 09:42:27 +01:00
spring-expression Allow SpEL reserved words in type package names 2012-10-30 13:38:37 +01:00
spring-instrument/src Remove bundlor support 2012-01-31 14:37:11 +01:00
spring-instrument-tomcat/src Remove bundlor support 2012-01-31 14:37:11 +01:00
spring-jdbc/src Fix typos and suppress warnings in JdbcTemplate 2012-10-28 15:43:16 +01:00
spring-jms/src Added proper synchronization and not-null check to SimpleMessageListenerContainer's doShutdown 2012-10-31 09:38:11 +01:00
spring-orm/src Add onTimeout/onCompletion callbacks to DeferredResult 2012-10-30 21:58:44 -04:00
spring-oxm Jaxb2Marshaller has non-synchronized access to the JAXBContext once initialized 2012-10-12 23:34:17 +02:00
spring-struts/src Fix javadoc warnings 2012-04-30 11:31:02 +03:00
spring-test Polish Javadoc in ContextLoaderUtils 2012-10-28 19:15:10 +01:00
spring-test-mvc Delete unused import 2012-10-31 17:46:24 +01:00
spring-tx/src TransactionInterceptor avoids reflective method search for method identification 2012-09-26 19:30:42 +02:00
spring-web/src Clarified ServletConfigAware behavior in case of no ServletConfig being available 2012-10-31 09:38:12 +01:00
spring-webmvc/src Peek into the content for @RequestBody(required=false) 2012-10-31 21:15:15 -04:00
spring-webmvc-portlet/src Portlet mapping predicate compareTo implementations are transitive now 2012-10-31 02:53:20 +01:00
src Fix typo in changelog 2012-10-31 20:35:11 +01:00
.gitignore Add Maven artifacts to .gitignore 2012-06-14 11:39:16 +01:00
CONTRIBUTING.md Add CONTRIBUTING.md 2012-09-18 13:28:00 +01:00
README.md Work around apparent bug in README markdown parsing 2012-06-25 19:42:22 +02:00
build.gradle Remove need to manually set wrapper GRADLE_OPTS 2012-10-31 17:29:00 -07:00
gradle.properties Increment version to 3.2.0.BUILD-SNAPSHOT 2012-09-12 04:08:39 +02:00
gradlew Restore GRADLE_OPTS from wrappers 2012-10-31 17:30:52 -07:00
gradlew.bat Restore GRADLE_OPTS from wrappers 2012-10-31 17:30:52 -07:00
import-into-eclipse.sh Update STS version used to test Eclipse setup script 2012-09-11 17:32:30 +02:00
import-into-idea.md Update README and add IDE import helper scripts 2012-01-31 14:37:12 +01:00
merge-dist.gradle merge-dist.gradle disables artifactoryPublish 2012-10-05 11:40:42 -05:00
publish-maven.gradle Upgrade to Gradle 1.0-rc1 2012-04-14 12:52:07 +03:00
settings.gradle Add Spring MVC Test framework 2012-10-05 12:02:25 -04: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.

.NET and Python variants are available as well.

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. The only prerequisites are Git and JDK 1.6+.

check out sources

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

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

./gradlew build

install all spring-* jars into your local Maven cache

./gradlew install

import sources into your IDE

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

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