@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,
EmbeddedMongoProperties embeddedProperties) |
Modifier and Type | Method and Description |
---|---|
de.flapdoodle.embed.mongo.config.IMongodConfig |
embeddedMongoConfiguration(EmbeddedMongoProperties embeddedProperties) |
de.flapdoodle.embed.mongo.MongodExecutable |
embeddedMongoServer(de.flapdoodle.embed.mongo.config.IMongodConfig mongodConfig,
de.flapdoodle.embed.process.config.IRuntimeConfig runtimeConfig,
ApplicationContext context) |
public EmbeddedMongoAutoConfiguration(MongoProperties properties, EmbeddedMongoProperties embeddedProperties)
@Bean(initMethod="start", destroyMethod="stop") @ConditionalOnMissingBean public de.flapdoodle.embed.mongo.MongodExecutable embeddedMongoServer(de.flapdoodle.embed.mongo.config.IMongodConfig mongodConfig, de.flapdoodle.embed.process.config.IRuntimeConfig runtimeConfig, ApplicationContext context) throws IOException
IOException
@Bean @ConditionalOnMissingBean public de.flapdoodle.embed.mongo.config.IMongodConfig embeddedMongoConfiguration(EmbeddedMongoProperties embeddedProperties) throws IOException
IOException