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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)