Fix Redis components for JDK deserialization

It turns out that `JdkSerializationRedisSerializer` by default is
based on the default Java class loader which may lead into
`ClassCastException` downstream after deserialization

* Make all the `JdkSerializationRedisSerializer` usage (default)
in Redis components based on the BeanFactory `ClassLoader`
* Fix tests to call `setBeanClassLoader()`
* Fix Mark Fisher's name in the `MultipartFileReader` :-)

**Cherry-pick to 5.1.x, 5.0.x & 4.3.x after restoring diamonds**
This commit is contained in:
Artem Bilan
2019-06-28 15:51:59 -04:00
committed by Gary Russell
parent 890cd1feb9
commit f89e8aafa5
6 changed files with 91 additions and 62 deletions

View File

@@ -23,7 +23,8 @@ import org.springframework.web.multipart.MultipartFile;
/**
* Strategy for reading {@link MultipartFile} content.
*
* @author mark Fisher
* @author Mark Fisher
*
* @since 2.0
*/
public interface MultipartFileReader<T> {