Switch default session converter to JDK

The Jackson-based session converter doesn't work as expected, so switching to JDK-based one for now until we can write more tests and determine what is wrong.
This commit is contained in:
Greg Turnquist
2017-09-06 09:43:35 -05:00
parent 92dd4f8401
commit d7ad6d320f
2 changed files with 6 additions and 14 deletions

View File

@@ -15,8 +15,6 @@
*/
package org.springframework.session.data.mongo;
import org.springframework.util.ClassUtils;
/**
* Provider choosing proper AbstractMongoSessionConverter.
*
@@ -30,13 +28,7 @@ final class SessionConverterProvider {
}
static AbstractMongoSessionConverter getDefaultMongoConverter() {
if (ClassUtils.isPresent(JACKSON_CLASS_NAME, null)) {
return new JacksonMongoSessionConverter();
}
else {
return new JdkMongoSessionConverter();
}
return new JdkMongoSessionConverter();
}
}