@Configuration(proxyBeanMethods=false) @EnableConfigurationProperties(value={MongoProperties.class,EmbeddedMongoProperties.class}) @AutoConfigureBefore(value=MongoAutoConfiguration.class) @ConditionalOnClass(value={com.mongodb.MongoClientSettings.class,de.flapdoodle.embed.mongo.MongodStarter.class}) @Import(value={org.springframework.boot.autoconfigure.mongo.embedded.EmbeddedMongoAutoConfiguration.EmbeddedMongoClientDependsOnBeanFactoryPostProcessor.class,org.springframework.boot.autoconfigure.mongo.embedded.EmbeddedMongoAutoConfiguration.EmbeddedReactiveStreamsMongoClientDependsOnBeanFactoryPostProcessor.class}) public class EmbeddedMongoAutoConfiguration extends Object
Auto-configuration
for Embedded Mongo.Constructor and Description |
---|
EmbeddedMongoAutoConfiguration(MongoProperties properties) |
Modifier and Type | Method and Description |
---|---|
de.flapdoodle.embed.mongo.config.MongodConfig |
embeddedMongoConfiguration(EmbeddedMongoProperties embeddedProperties) |
de.flapdoodle.embed.mongo.MongodExecutable |
embeddedMongoServer(de.flapdoodle.embed.mongo.config.MongodConfig mongodConfig,
de.flapdoodle.embed.process.config.RuntimeConfig runtimeConfig,
ApplicationContext context) |
public EmbeddedMongoAutoConfiguration(MongoProperties properties)
@Bean(initMethod="start", destroyMethod="stop") @ConditionalOnMissingBean public de.flapdoodle.embed.mongo.MongodExecutable embeddedMongoServer(de.flapdoodle.embed.mongo.config.MongodConfig mongodConfig, de.flapdoodle.embed.process.config.RuntimeConfig runtimeConfig, ApplicationContext context)
@Bean @ConditionalOnMissingBean public de.flapdoodle.embed.mongo.config.MongodConfig embeddedMongoConfiguration(EmbeddedMongoProperties embeddedProperties) throws IOException
IOException