- 25 5月, 2014 1 次提交
-
-
由 Gildas Cuisinier 提交于
-
- 23 5月, 2014 3 次提交
-
-
由 Rossen Stoyanchev 提交于
Issue: SPR-9488
-
由 Rossen Stoyanchev 提交于
-
由 Roy Clarkson 提交于
This commit adds support to read and write JSON using the Google Gson library. GsonHttpMessageConverter offers default Gson configuration, but can be customized by using GsonFactoryBean. GsonFactoryBean includes several convenience properties for configuring the internal GsonBuilder and the resulting Gson object. By default Gson converts byte arrays to JSON arrays instead of a Base64 encoded string. GsonBase64ByteArrayJsonTypeAdapter provides support to read and write Base64 encoded byte arrays, and can be enabled in GsonFactoryBean. RestTemplate will enable GsonHttpMessageConverter only if Jackson 2 is not found on the class path, because by default GsonHttpMessageConverter supports the same media types as Jackson. Issue: SPR-9488
-
- 21 5月, 2014 2 次提交
-
-
由 Stephane Nicoll 提交于
Prior to this commit, CacheResolver could not be configured through the XML namespace (i.e. cache:annotation-driven). This is now the case. Issue: SPR-11490
-
由 Rossen Stoyanchev 提交于
Issue: SPR-9899
-
- 20 5月, 2014 16 次提交
-
-
由 Stephane Nicoll 提交于
This commit adds the necessary infrastructure to handle exceptions thrown by a cache provider in both Spring's and JCache's caching abstractions. Both interceptors can be configured with a CacheErrorHandler that defines several callbacks on typical cache operations. In particular, handleCacheGetError can be implemented in such a way that an exception thrown by the provider is handled as a cache miss by the caching abstraction. The handler can be configured with both CachingConfigurer and the XML namespace (error-handler property) Issue: SPR-9275
-
由 Juergen Hoeller 提交于
Issue: SPR-11074
-
由 Juergen Hoeller 提交于
-
由 Rossen Stoyanchev 提交于
Issue: SPR-11768
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
(cherry picked from commit 54636b3f)
-
由 Juergen Hoeller 提交于
Consistent use of IllegalStateException instead of InternalError for UnsupportedEncodingException cause
-
由 Juergen Hoeller 提交于
UriComponentsBuilder.toUriString instead of RequestContext.getMvcUrl (breaking cyclic dependency between web.servlet.support and web.servlet.mvc)
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
This commit also includes a JUnit 4 style revision of StringUtilsTests and ObjectUtilsTests. Issue: SPR-11806
-
由 Juergen Hoeller 提交于
Consistently log Class.getName() instead of Class.toString(), avoiding double class term in log message Issue: SPR-11804
-
由 Rossen Stoyanchev 提交于
The newly added support for ResponseBodyInterceptor is a good fit for the (also recently added) support for the Jackson @JsonView annotation. This change refactors the original implementation of @JsonView support for @ResponseBody and ResponseEntity controller methods this time implemented as an ResponseBodyInterceptor. Issue: SPR-7156
-
由 Rossen Stoyanchev 提交于
This change introduces a new ResponseBodyInterceptor interface that can be used to modify the response after @ResponseBody or ResponseEntity methods but before the body is actually written to the response with the selected HttpMessageConverter. The RequestMappingHandlerAdapter and ExceptionHandlerExceptionResolver each have a property to configure such interceptors. In addition both RequestMappingHandlerAdapter and ExceptionHandlerExceptionResolver detect if any @ControllerAdvice bean implements ResponseBodyInterceptor and use it accordingly. Issue: SPR-10859
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
Consistently log Class.getName() instead of Class.toString(), avoiding double class term in log message Issue: SPR-11804
-
- 19 5月, 2014 5 次提交
-
-
由 Juergen Hoeller 提交于
Issue: SPR-11804
-
由 Juergen Hoeller 提交于
ServletRequestAttributes skips well-known immutable values when updating accessed session attributes Issue: SPR-11738
-
由 Juergen Hoeller 提交于
-
由 Stephane Nicoll 提交于
This commit adds a JMS implementation of MessageSendingOperations, allowing to send JMS messages using Spring's standard Messaging abstraction. MessagingMessageConverter is a standard JMS's MessageConverter that can convert Spring's Message to JMS message and vice versa. Existing infrastructure has been updated to use this implementation. Issue: SPR-11772
-
由 Juergen Hoeller 提交于
Servlet 3 multipart request implements getParameterNames defensively (for WebLogic 12 compatibility) This commit also includes lazy resolution support for StandardServletMultipartResolver, along the lines of existing lazy mode in CommonsMultipartResolver. Issue: SPR-11074 Issue: SPR-11730
-
- 18 5月, 2014 1 次提交
-
-
由 Juergen Hoeller 提交于
Properly evaluate @Conditional in case of multiple imports for same config class (fixing regression in Spring Boot) Issue: SPR-11788 (cherry picked from commit 7d78c651)
-
- 17 5月, 2014 1 次提交
-
-
由 Juergen Hoeller 提交于
Servlet/PortletResponse supported as a resolvable dependency now (in particular for web controllers) This feature required support for response exposure on Servlet/PortletRequestAttributes, instead of just in the Servlet/PortletWebRequest subclasses. Issue: SPR-11795
-
- 16 5月, 2014 7 次提交
-
-
由 Juergen Hoeller 提交于
Issue: SPR-11791
-
由 Juergen Hoeller 提交于
Issue: SPR-11788
-
由 Sebastien Deleuze 提交于
Spring MVC now supports Jackon's serialization views for rendering different subsets of the same POJO from different controller methods (e.g. detailed page vs summary view). Issue: SPR-7156
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
Issue: SPR-11793
-
由 Rossen Stoyanchev 提交于
-
由 Arjen Poutsma 提交于
Moved the ResponseEntityBuilder into the ResponseEntity itself. Issue: SPR-11752
-
- 15 5月, 2014 4 次提交
-
-
由 Stephane Nicoll 提交于
This commit adds a SQLErrorCodes instance for SAP DB, based on a contribution from Andrew Clemons Mostly based on SAP Hana SPS 07 with a few additional codes that are only present is previous versions: * -813 - Cannot connect to host somehost:30115 [Connection refused] * -709 - Unknown host somehost:30115 [somehost], -709.] * -708 - Cannot connect to jdbc:sap://somehost:30115 [Receive of connect failed.] * -11210 - Invalid column index XYZ. Issue: SPR-11770
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
-
由 Stephane Nicoll 提交于
This commit avoids throwing JMSException from the listener execution as this is not allowed per spec. Our SessionAwareMessageListener gives a callback that can throw JMSException and we have "abused" it so far. Typical message processing goes in those 3 steps: * Unmarshall the javax.jms.Message to the requested type * Invoke the actual user method (including processing of method arguments) * Send a reply message, if any Those three steps have been harmonized so that they don't throw a JMSException anymore. For the later case, introduced ReplyFailureException as a general exception indicating the reply message could not have been sent. Issue: SPR-11778
-