Polish JacksonMongoSessionConverter

Issue gh-416
This commit is contained in:
Rob Winch
2016-03-14 13:27:47 -05:00
parent e23398b890
commit bbbdf939e8
5 changed files with 14 additions and 3 deletions

View File

@@ -15,10 +15,17 @@
*/
package sample.config;
import org.springframework.context.annotation.Bean;
import org.springframework.session.data.mongo.JdkMongoSessionConverter;
import org.springframework.session.data.mongo.config.annotation.web.http.EnableMongoHttpSession;
// tag::class[]
@EnableMongoHttpSession // <1>
public class HttpSessionConfig {
@Bean
public JdkMongoSessionConverter jdkMongoSessionConverter() {
return new JdkMongoSessionConverter(); // <2>
}
}
// end::class[]