类 EmbeddedMongoAutoConfiguration
- java.lang.Object
- org.springframework.boot.autoconfigure.mongo.embedded.EmbeddedMongoAutoConfiguration
@Configuration @EnableConfigurationProperties({MongoProperties.class,EmbeddedMongoProperties.class}) @AutoConfigureBefore(MongoAutoConfiguration.class) @ConditionalOnClass({com.mongodb.MongoClient.class,de.flapdoodle.embed.mongo.MongodStarter.class}) public class EmbeddedMongoAutoConfiguration extends Object
Auto-configuration
for Embedded Mongo.- 从以下版本开始:
- 1.3.0
嵌套类概要
嵌套类 修饰符和类型 类 说明 protected static class
EmbeddedMongoAutoConfiguration.EmbeddedMongoDependencyConfiguration
Additional configuration to ensure thatMongoClient
beans depend on theembeddedMongoServer
bean.protected static class
EmbeddedMongoAutoConfiguration.EmbeddedReactiveMongoDependencyConfiguration
Additional configuration to ensure thatMongoClient
beans depend on theembeddedMongoServer
bean.
构造器概要
构造器 构造器 说明 EmbeddedMongoAutoConfiguration(MongoProperties properties, EmbeddedMongoProperties embeddedProperties, org.springframework.context.ApplicationContext context, de.flapdoodle.embed.process.config.IRuntimeConfig runtimeConfig)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 de.flapdoodle.embed.mongo.config.IMongodConfig
embeddedMongoConfiguration()
de.flapdoodle.embed.mongo.MongodExecutable
embeddedMongoServer(de.flapdoodle.embed.mongo.config.IMongodConfig mongodConfig)
构造器详细资料
EmbeddedMongoAutoConfiguration
public EmbeddedMongoAutoConfiguration(MongoProperties properties, EmbeddedMongoProperties embeddedProperties, org.springframework.context.ApplicationContext context, de.flapdoodle.embed.process.config.IRuntimeConfig runtimeConfig)
方法详细资料
embeddedMongoServer
@Bean(initMethod="start", destroyMethod="stop") @ConditionalOnMissingBean public de.flapdoodle.embed.mongo.MongodExecutable embeddedMongoServer(de.flapdoodle.embed.mongo.config.IMongodConfig mongodConfig) throws IOException
- 抛出:
IOException
embeddedMongoConfiguration
@Bean @ConditionalOnMissingBean public de.flapdoodle.embed.mongo.config.IMongodConfig embeddedMongoConfiguration() throws IOException
- 抛出:
IOException