Package edu.ucsb.cs156.courses.config
Class MongoDevConfig
java.lang.Object
de.flapdoodle.embed.mongo.spring.autoconfigure.EmbeddedMongoAutoConfiguration
edu.ucsb.cs156.courses.config.MongoDevConfig
@Profile("development")
@Configuration
@EnableAutoConfiguration
@EnableMongoRepositories("edu.ucsb.cs156.courses.collections")
@EnableMongoAuditing(dateTimeProviderRef="auditingDateTimeProvider")
public class MongoDevConfig
extends de.flapdoodle.embed.mongo.spring.autoconfigure.EmbeddedMongoAutoConfiguration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.auditing.DateTimeProvider
void
mongoInstance
(org.springframework.data.mongodb.core.MongoTemplate mongoTemplate) Methods inherited from class de.flapdoodle.embed.mongo.spring.autoconfigure.EmbeddedMongoAutoConfiguration
fixTransactionAndAuth, mongod, mongodArguments, net, processOutput, progressListener, version
-
Constructor Details
-
MongoDevConfig
public MongoDevConfig()
-
-
Method Details
-
dateTimeProvider
@Bean(name="auditingDateTimeProvider") public org.springframework.data.auditing.DateTimeProvider dateTimeProvider() -
mongoInstance
public void mongoInstance(@Autowired org.springframework.data.mongodb.core.MongoTemplate mongoTemplate)
-