title: Spring Boot 2.1 duplicate reactiveMongoTemplate bean
body: <p>I have the following Spring Boot <code>@Configuration</code> class:</p>
  
  <pre><code>@Configuration
  @EnableReactiveMongoRepositories
  class MongoConfiguration : AbstractReactiveMongoConfiguration()
  {
      override fun reactiveMongoClient() = MongoClients.create()
  
      override fun getDatabaseName() = "mydb"
  
      override fun customConversions(): MongoCustomConversions =
              MongoCustomConversions(listOf(ZonedDateTimeReadConverter(), ZonedDateTimeWriteConverter()))
  }
  </code></pre>
  
  <p>The application fails to start, and logs this message:</p>
  
  <blockquote>
    <p>The bean 'reactiveMongoTemplate', defined in class path resource [org/springframework/boot/autoconfigure/data/mongo/MongoReactiveDataAutoConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [com/mypackage/MongoConfiguration.class] and overriding is disabled.</p>
  </blockquote>
  
  <p>This puzzles me, as the <code>reactiveMongoTemplate</code> ben method in <code>MongoReactiveDataAutoConfiguration</code> is configured with <code>@ConditionalOnMissingBean</code>.</p>