title: Spring Data MongoDB - Always connecting with default parameters
body: <p>I am using MongoDB 3.0.0 with Spring, accessing with <code>spring-data-mongodb</code> and <code>mongo-java-driver</code></p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.springframework.data&lt;/groupId&gt;
      &lt;artifactId&gt;spring-data-mongodb&lt;/artifactId&gt;
      &lt;version&gt;1.7.0.RELEASE&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;org.mongodb&lt;/groupId&gt;
      &lt;artifactId&gt;mongo-java-driver&lt;/artifactId&gt;
      &lt;version&gt;3.0.2&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>In test environment, I perform JUnit tests on object validation only, so I don't load any <code>MongoTemplate</code>, nor any mongo-related configuration.</p>
  
  <p>For some reason, I always get in the log:</p>
  
  <pre><code>2015-06-22 15:06:17,049 GMT [main] (SLF4JLogger.java:71) INFO  driver.cluster: Cluster created with settings {hosts=[localhost:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=50}
  2015-06-22 15:06:17,290 GMT [cluster-ClusterId{value='558808495d12e1d8bcc6ef19', description='null'}-localhost:27017] (SLF4JLogger.java:71) INFO  driver.connection: Opened connection [connectionId{localValue:1, serverValue:55}] to localhost:27017
  2015-06-22 15:06:17,290 GMT [cluster-ClusterId{value='558808495d12e1d8bcc6ef19', description='null'}-localhost:27017] (SLF4JLogger.java:71) INFO  driver.cluster: Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 0, 0]}, minWireVersion=0, maxWireVersion=3, electionId=null, maxDocumentSize=16777216, roundTripTimeNanos=434000}
  </code></pre>
  
  <p>Is it possible that in the <code>spring-data-mongodb</code> I get a Bean definition that causes the connection described in the log ? Is there any way to prevent it ? </p>