- 17 4月, 2015 1 次提交
-
-
由 Juergen Hoeller 提交于
Issue: SPR-12905
-
- 16 4月, 2015 4 次提交
-
-
由 Stephane Nicoll 提交于
Previously, the "pubSubDomain" drove the resolution of both the destination of the listener and the default response destination. A new "replyPubSubDomain" attribute has been added on the base listener and can be used to listen on a topic and reply to a queue (or vice versa). The attribute is exposed via the "response-destination-type" XML attribute on the listener container element. It is also available on the JmsListenerContainerFactory for use with the @JmsListener infrastructure. Issue: SPR-12911
-
由 Juergen Hoeller 提交于
Issue: SPR-12905
-
由 Juergen Hoeller 提交于
Issue: SPR-12915
-
由 Sam Brannen 提交于
-
- 15 4月, 2015 9 次提交
-
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
Issue: SPR-12910
-
由 Juergen Hoeller 提交于
Issue: SPR-12895
-
由 Sam Brannen 提交于
This commit increases the extensibility of AbstractTestContextBootstrapper by making the resolveContextLoader() and resolveExplicitContextLoaderClass() methods protected instead of private. Furthermore, resolveContextLoader() now throws an IllegalStateException if getDefaultContextLoaderClass() returns null. Issue: SPR-12682
-
由 Sam Brannen 提交于
This commit improves the documentation for ScriptUtils by explicitly mentioning that a JDBC Connection supplied to the one of the executeSqlScript() methods will not be released automatically. Issue: SPR-12908
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
-
由 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 2 次提交
-
-
由 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
-