Class EmbeddedMongoAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.mongo.embedded.EmbeddedMongoAutoConfiguration
@Configuration(proxyBeanMethods=false)
@EnableConfigurationProperties({MongoProperties.class,EmbeddedMongoProperties.class})
@AutoConfigureBefore(MongoAutoConfiguration.class)
@ConditionalOnClass({com.mongodb.MongoClientSettings.class,de.flapdoodle.embed.mongo.MongodStarter.class})
@Import({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.- Since:
- 1.3.0
- Author:
- Henryk Konsek, Andy Wilkinson, Yogesh Lonkar, Mark Paluch, Issam El-atif, Paulius Dambrauskas, Chris Bono
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionde.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)
-
Constructor Details
-
EmbeddedMongoAutoConfiguration
-
-
Method Details
-
embeddedMongoServer
@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) -
embeddedMongoConfiguration
@Bean @ConditionalOnMissingBean public de.flapdoodle.embed.mongo.config.MongodConfig embeddedMongoConfiguration(EmbeddedMongoProperties embeddedProperties) throws IOException - Throws:
IOException
-