- 03 7月, 2012 1 次提交
-
-
由 Phillip Webb 提交于
Ensure that NonClosingOutputStream calls with a byte array call the corresponding methods of the underlying OutputStream rather than relying on the default NonClosingOutputStream implementation, which writes one bte at a time. This significantly improves performance. Issues: SPR-9530
-
- 28 6月, 2012 2 次提交
-
-
由 Chris Beams 提交于
Issue: SPR-9443, SPR-6847, SPR-9446, SPR-9444, SPR-9439, SPR-9302, SPR-9507, SPR-9238, SPR-9397, SPR-9406, SPR-9502
-
由 Chris Beams 提交于
@Async executor qualification has been backported to 3.1.2. This commit updates all @since tags appropriately, as well as carrying over the changes backported to the spring-task-3.1 schema. Issue: SPR-6847, SPR-9443
-
- 27 6月, 2012 1 次提交
-
-
由 Rossen Stoyanchev 提交于
Issue: SPR-9289
-
- 26 6月, 2012 5 次提交
-
-
由 Rossen Stoyanchev 提交于
Return an empty map when there are no path variables, rather than raising an exception. This is consistent with similar resolvers for extracting headers and request parameters. Issue: SPR-9289
-
由 Rossen Stoyanchev 提交于
Following the introduction of ContentNegotiationManager that allows, among other things, to configure the file extensions to use for content negotiation, this change adds "smart" suffix pattern match that matches against the configured file extensions only rather than against any extension. Given the request mapping "/jobs/{jobName}" and one configured file extension ("json"), a request for "/jobs/my.job" will select the pattern "/jobs/{jobName}" while a request for "/jobs/my.job.json" will select the pattern "/jobs/{jobName}.json". Previously, both requests would have resulted in the pattern "/jobs/{jobName}.*". Issue: SPR-7632, SPR-8474
-
由 Rossen Stoyanchev 提交于
Issue: SPR-8410, SPR-8417, SPR-8418,SPR-8416, SPR-8419,SPR-7722
-
由 Rossen Stoyanchev 提交于
Issue: SPR-7985
-
由 Chris Beams 提交于
The exact text above the "Staying in touch" section caused "Staying in touch" to lose it's formatting as a second-level heading. Adding " for details" to the sentence above works around the problem.
-
- 25 6月, 2012 2 次提交
-
-
由 Chris Beams 提交于
Issue: SPR-9536
-
由 Arjen Poutsma 提交于
XStreamMarshaller should convert XStream StreamException to Spring exception in case of unmarshalling an empty stream. Issue: SPR-9536
-
- 23 6月, 2012 1 次提交
-
-
由 Rossen Stoyanchev 提交于
The HTTP PATCH method is now supported whereever HTTP methods are used. Annotated controllers can be mapped to RequestMethod.PATCH. On the client side the RestTemplate execute(..) and exchange(..) methods can be used with HttpMethod.PATCH. In terms of HTTP client libraries, Apache HttpComponents HttpClient version 4.2 or later is required (see HTTPCLIENT-1191). The JDK HttpURLConnection does not support the HTTP PATCH method. Issue: SPR-7985
-
- 22 6月, 2012 1 次提交
-
-
由 Rossen Stoyanchev 提交于
Introduced ContentNeogtiationStrategy for resolving the requested media types from an incoming request. The available implementations are based on path extension, request parameter, 'Accept' header, and a fixed default content type. The logic for these implementations is based on equivalent options, previously available only in the ContentNegotiatingViewResolver. Also in this commit is ContentNegotiationManager, the central class to use when configuring content negotiation options. It accepts one or more ContentNeogtiationStrategy instances and delegates to them. The ContentNeogiationManager can now be used to configure the following classes: - RequestMappingHandlerMappingm - RequestMappingHandlerAdapter - ExceptionHandlerExceptionResolver - ContentNegotiatingViewResolver Issue: SPR-8410, SPR-8417, SPR-8418,SPR-8416, SPR-8419,SPR-7722
-
- 21 6月, 2012 1 次提交
-
-
由 Chris Beams 提交于
PropertySourcesPropertyResolver#containsProperty now calls #containsProperty on each underlying PropertySource instead of calling #getProperty and checking for null. Issue: SPR-9529
-
- 20 6月, 2012 6 次提交
-
-
由 Sam Brannen 提交于
The reference manual currently documents the wrong file name for the default data SQL script used by EmbeddedDatabaseBuilder. In addition, the testing chapter of the reference manual does not link to the testing section of the JDBC chapter. - Updated the "Testing data access logic with an embedded database" section of the reference manual appropriately. - Added a new paragraph to the "JDBC Testing Support" section of the testing chapter which cross references the "Testing data access logic with an embedded database" section. Issue: SPR-9467
-
由 Sam Brannen 提交于
Issue: SPR-9493
-
由 Sam Brannen 提交于
-
由 Chris Beams 提交于
Commit aa415d7c introduced JacksonObjectMapperFactoryBean and associated tests, but with Windows (CRLF) line endings instead of the conventional Unix (LF) line endings. This commit converts these files to LF endings using the handy `dos2unix` utility. Issue: SPR-9125
-
由 Sam Brannen 提交于
* SPR-9493: Infer return type of parametrized factory methods
-
由 Sam Brannen 提交于
Currently, if a factory method is parameterized and the corresponding variable types are declared on the method itself instead of on the enclosing class or interface, Spring always predicts the return type to be Object, even if the return type can be explicitly inferred from the method signature and supplied arguments (which are available in the bean definition). This commit introduces a new resolveParameterizedReturnType() method in GenericTypeResolver that attempts to infer the concrete type for the generic return type of a given parameterized method, falling back to the standard return type if necessary. Furthermore, AbstractAutowireCapableBeanFactory now delegates to resolveParameterizedReturnType() when predicting the return type for factory methods. resolveParameterizedReturnType() is capable of inferring the concrete type for return type T for method signatures similar to the following. Such methods may potentially be static. Also, the formal argument list for such methods is not limited to a single argument. - public <T> T foo(Class<T> clazz) - public <T> T foo(Object obj, Class<T> clazz) - public <V, T> T foo(V obj, Class<T> clazz) - public <T> T foo(T obj) Issue: SPR-9493
-
- 19 6月, 2012 6 次提交
-
-
由 Chris Beams 提交于
The readme is heavy on links and hard to read in source form when using typical inline Markdown links. The following changes have been made to increase readability. - Wrap lines at 80 characters - Use 'implicit link name' shortcut syntax as described at [1] - Add link to 'spring-mvc' Stack Overflow tag as well - Add link to new 'lifecycle of an issue' wiki doc [1]: http://daringfireball.net/projects/markdown/syntax
-
由 Chris Beams 提交于
Some Spring Framework users and teams cannot use transitive dependency management tools like Maven, Gradle and Ivy. For them, a `distZip` task has been added to allow for creating a Spring Framework distribution from source that includes all optional and required runtime dependencies for all modules of the framework. This 'dist-with-deps' zip is not published to the SpringSource repository nor to the SpringSource community download page. It is strictly an optional task introduced as a convenience to the users mentioned above. Detailed instructions for building this zip locally have been added to the wiki and the README has been updated with a link to that new doc. Issue: SPR-6575
-
由 Sam Brannen 提交于
Fixed outdated Javadoc regarding support for 'annotated classes' in the TestContext Framework.
-
由 Chris Beams 提交于
Issue: SPR-5022
-
由 Rossen Stoyanchev 提交于
* SPR-9125: BeanFactory for configuring a Jackson ObjectMapper
-
由 Dmitry Katsubo 提交于
The BeanFactory makes it easier to configure a customized Jackson ObjectMapper (for example enable/disable certain features). This bean factory is usually used with MappingJacksonHttpMessageConverter or MappingJacksonJsonView. See JavaDoc for examples. Issue: SPR-9125
-
- 18 6月, 2012 3 次提交
-
-
由 Rossen Stoyanchev 提交于
* DavidBiesack-master: Minor fix in Javadoc for RequestMapping
-
由 David J. Biesack 提交于
Issue: SPR-9483
-
由 Rossen Stoyanchev 提交于
Issue: SPR-9513
-
- 15 6月, 2012 2 次提交
-
-
由 Chris Beams 提交于
* rstoyanchev/SPR-4984: Add splitIndex Javadoc option to the root project
-
由 Rossen Stoyanchev 提交于
Splits the very large index page with all classes into individual pages organized by first letter. Issue: SPR-4984
-
- 14 6月, 2012 2 次提交
-
-
由 Rossen Stoyanchev 提交于
* SPR-8917: Allow parsing of media types with single-quotes
-
由 Maxim Valyanskiy 提交于
Previously MediaType could only parse double-quoted parameters without raising an IllegalArgumentException. Now parameters can also be single-quoted. Issue: SPR-8917
-
- 13 6月, 2012 2 次提交
-
-
由 Rossen Stoyanchev 提交于
HttpStatus cannot be created with an unknown status code. If a server returns a status code that's not in the HttpStatus enum values, an IllegalArgumentException is raised. Rather than allowing it to propagate as such, this change ensures the actual exception raised is a RestClientException. Issue: SPR-9406
-
由 Chris Beams 提交于
A recent commit made aopalliance optional for spring-aop, while continuing to require it for spring-tx. On review, this is probably overly aggressive, and for convenience aopalliance should remain required for spring-aop. There are use cases for which aopalliance is indeed optional, but core functionality such as <aop:scoped-proxy> should never result in a ClassNotFoundException. This commit returns the aopalliance dependency for spring-aop to required status, and also explicitly notes the same dependency in other modules that compile directly against aopalliance types. Issue: SPR-9501
-
- 12 6月, 2012 1 次提交
-
-
由 Chris Beams 提交于
Issue: SPR-9494
-
- 10 6月, 2012 2 次提交
-
-
由 Sam Brannen 提交于
The junit:junit Maven artifact includes a bundled version of hamcrest core. For projects that depend on later versions of hamcrest this causes significant issues in terms of dependency management. The spring-test module now depends on junit:junit-dep, thus allowing developers to better manage their test dependencies on a more fine grained level. Also tidied up dependency issues regarding hamcrest-core and hamcrest-all across the build. Issue: SPR-6966
-
由 Sam Brannen 提交于
This commit introduces a test suite (Spr8849Tests) that demonstrates the claims made in SPR-8849. Specifically, if <jdbc:embedded-database id="xyz" /> is used to create an embedded HSQL database in an XML configuration file and that configuration file is imported in different sets of configuration files that are used to load ApplicationContexts for different integration tests, the embedded database will be initialized multiple times using any nested <jdbc:script /> elements. If such a script is used to create a table, for example, subsequent attempts to initialize the database named "xyz" will fail since an embedded database named "xyz" already exists in the JVM. As a work-around, this test suite uses a SpEL expression to generate a random string for each embedded database instance: id="#{T(java.util.UUID).randomUUID().toString()}" See the Javadoc in Spr8849Tests for further information. Issue: SPR-8849
-
- 04 6月, 2012 2 次提交
-
-
由 Chris Beams 提交于
* SPR-9457: Use transactional connection during db population
-
由 Oliver Gierke 提交于
Previously, DatabasePopulatorUtils#execute looked up a Connection from the given DataSource directly which resulted in the executed statements not being executed against a transactional connection (if any) which in turn resulted in the statements executed by the populator potentially not being rolled back. Now DataSourceUtils#getConnection is used to transparently take part in any active transaction and #releaseConnection is used to ensure the connection is closed if appropriate. Issue: SPR-9457
-