message.mongodb.config.MongoConfiguration Maven / Gradle / Ivy
package message.mongodb.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.mongodb.core.convert.DefaultMongoTypeMapper;
/**
* 基本配置.
*
* @author sunhao([email protected])
* @version V1.0, 16/1/21 下午10:15
*/
@Configuration
@ComponentScan("message.mongodb")
public class MongoConfiguration {
@Bean
public DefaultMongoTypeMapper defaultMongoTypeMapper() {
return new DefaultMongoTypeMapper();
}
}