- 15 4月, 2015 2 次提交
-
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
This commit introduces isNotEmpty() aliases for the existing hasLength() methods in StringUtils. Issue: SPR-12909
-
- 14 4月, 2015 8 次提交
-
-
由 Rossen Stoyanchev 提交于
Issue: SPR-11771
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
Issue: SPR-12903
-
由 Rossen Stoyanchev 提交于
Issue: SPR-12818
-
由 Rossen Stoyanchev 提交于
The onFailure callback and future.get() occur in different threads so this change adds a latch to ensure we have both before asserting. Issue: SPR-12887
-
由 Rossen Stoyanchev 提交于
AbstractHttpMessageConverter now tries to call getDefaultContentType with the actual value to be converted to see if that will result in a more concrete mediat type than application/octet-stream. Issue: SPR-12894
-
由 Rossen Stoyanchev 提交于
* dgtombs-SPR-12759: Improve RedirectAttributes reference docs
-
由 David Tombs 提交于
The use of RedirectAttributes was documented in four places in the reference documentation. This commit merges some of the places and links properly between them. Issue: SPR-12759
-
- 10 4月, 2015 2 次提交
-
-
由 Arjen Poutsma 提交于
RuntimeExceptions thrown from FutureAdapter.adapt() should be wrapped in an ExecutionException, not thrown as is. Issue: SPR-12887
-
由 Stephane Nicoll 提交于
Issue: SPR-12898
-
- 09 4月, 2015 1 次提交
-
-
由 Sam Brannen 提交于
Prior to this commit it was possible to set or get a static field using ReflectionTestUtils but only if an instance of the target class was available. This commit introduces dedicated support for setting and getting static fields in ReflectionTestUtils when only the target class is available. Furthermore, this commit increases the robustness of ReflectionTestUtilsTests regarding expected exceptions and simplifies the Javadoc for ReflectionTestUtils. Issue: SPR-6792
-
- 08 4月, 2015 2 次提交
-
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
-
- 07 4月, 2015 7 次提交
-
-
由 Stephane Nicoll 提交于
Add a trace log for cache hit and cache miss events. Issue: SPR-11654
-
由 Stephane Nicoll 提交于
The auto startup flag can now be set on a JmsListenerContainerFactory to control if the created container should be started automatically when the application context starts. Issue: SPR-12824
-
由 Rossen Stoyanchev 提交于
Issue: SPR-12854
-
由 Rossen Stoyanchev 提交于
Issue: SPR-12880
-
由 Rossen Stoyanchev 提交于
Issue: SPR-10153
-
由 Rossen Stoyanchev 提交于
Issue: SPR-12888
-
由 Rossen Stoyanchev 提交于
Issue: SPR-10954
-
- 04 4月, 2015 3 次提交
-
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
Also refines logIntrospectionFailure to just log at debug level for meta-annotation introspection failures. Issue: SPR-12889
-
由 Rossen Stoyanchev 提交于
-
- 03 4月, 2015 1 次提交
-
-
由 Rossen Stoyanchev 提交于
-
- 02 4月, 2015 8 次提交
-
-
由 Sebastien Deleuze 提交于
This commit introduces support for CORS in Spring Framework. Cross-origin resource sharing (CORS) is a mechanism that allows many resources (e.g. fonts, JavaScript, etc.) on a web page to be requested from another domain outside the domain from which the resource originated. It is defined by the CORS W3C recommandation (http://www.w3.org/TR/cors/). A new annotation @CrossOrigin allows to enable CORS support on Controller type or method level. By default all origins ("*") are allowed. @RestController public class SampleController { @CrossOrigin @RequestMapping("/foo") public String foo() { // ... } } Various @CrossOrigin attributes allow to customize the CORS configuration. @RestController public class SampleController { @CrossOrigin(origin = { "http://site1.com", "http://site2.com" }, allowedHeaders = { "header1", "header2" }, exposedHeaders = { "header1", "header2" }, method = RequestMethod.DELETE, maxAge = 123, allowCredentials = "true") @RequestMapping(value = "/foo", method = { RequestMethod.GET, RequestMethod.POST} ) public String foo() { // ... } } A CorsConfigurationSource interface can be implemented by HTTP request handlers that want to support CORS by providing a CorsConfiguration that will be detected at AbstractHandlerMapping level. See for example ResourceHttpRequestHandler that implements this interface. Global CORS configuration should be supported through ControllerAdvice (with type level @CrossOrigin annotated class or class implementing CorsConfigurationSource), or with XML namespace and JavaConfig configuration, but this is not implemented yet. Issue: SPR-9278
-
由 Sebastien Deleuze 提交于
Jackson 2.5.0 or later is required. Issue: SPR-12501
-
由 Sebastien Deleuze 提交于
This commit adds a filters property to MappingJacksonValue and also manages a special FilterProvider class name model key in order to be able to specify a customized FilterProvider for each handler method execution, and thus provides a more dynamic alternative to our existing JsonView support. A filters property is also now available in Jackson2ObjectMapperBuilder and Jackson2ObjectMapperFactoryBean in order to set easily a global FilterProvider. More details about @JsonFilter at http://wiki.fasterxml.com/JacksonFeatureJsonFilter. Issue: SPR-12586
-
由 Stephane Nicoll 提交于
* patch-1: Fix typo.
-
由 izeye 提交于
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
Issue: SPR-12501
-
由 Juergen Hoeller 提交于
Issue: SPR-12870
-
- 01 4月, 2015 6 次提交
-
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
ReaderEditor supports Reader injection analogous to InputStreamEditor (from Spring resource location) Also, EncodedResource implements InputStreamSource now since it declares getInputStream() anyway. Issue: SPR-12876
-
由 Juergen Hoeller 提交于
Issue: SPR-12871
-
由 Brian Clozel 提交于
Prior to this commit, the `client-library-url` XML attribute was not effective in the MVC namespace, leaving the default value configured: ```xml <websocket:sockjs client-library-url="/js/sockjs.js" /> ``` This commit fixes the sockjs namespace handler and makes sure that this attribute is configured on the `SockJsService` Bean to be created. Issue: SPR-12874
-
由 Juergen Hoeller 提交于
Netty4ClientHttpRequest ignores query params
-
由 Arjen Poutsma 提交于
Before this commit, Netty4ClientHttpRequest ignored query parameters (?foo=bar). This commit fixes that. Issue: SPR-12779
-