title: Failed to convert property value of type 'java.lang.String' to required type 'com.mongodb.ServerAddress[]' for property 'replicaSetSeeds'
body: <p>Is this bug in Mongo driver or am i doing anything incorrect?
  <p>
  Getting below exception: <br></p>
  
  <pre><code>Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'java.lang.String' to required type 'com.mongodb.ServerAddress[]' for property 'replicaSetSeeds'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [com.mongodb.ServerAddress] for property 'replicaSetSeeds[0]': no matching editors or conversion strategy found
      at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:465)
      at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:496)
      at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:490)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1437)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1396)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1132)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:522)
      ... 14 more
  Caused by: java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [com.mongodb.ServerAddress] for property 'replicaSetSeeds[0]': no matching editors or conversion strategy found
      at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:264)
      at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:128)
      at org.springframework.beans.TypeConverterDelegate.convertToTypedArray(TypeConverterDelegate.java:487)
      at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:195)
      at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:450)
      ... 20 more
  </code></pre>
  
  <p><p>
  Below is my spring configuration <br></p>
  
  <p>
  
       </p>
  
  <pre><code> &lt;bean id="defaultMongoTypeMapper"  class="org.springframework.data.mongodb.core.convert.DefaultMongoTypeMapper"&gt;
      &lt;constructor-arg name="typeKey"&gt;&lt;null/&gt;&lt;/constructor-arg&gt;
   &lt;/bean&gt;
  
   &lt;bean id="mappingMongoConverter" class="org.springframework.data.mongodb.core.convert.MappingMongoConverter"&gt;
      &lt;constructor-arg name="mongoDbFactory" ref="mongoDbFactory" /&gt;
      &lt;constructor-arg name="mappingContext" ref="mappingContext" /&gt;
      &lt;property name="typeMapper" ref="defaultMongoTypeMapper" /&gt;
   &lt;/bean&gt;
  
   &lt;bean id="mongoTemplate" class="org.springframework.data.mongodb.core.MongoTemplate"&gt;
      &lt;constructor-arg name="mongoDbFactory" ref="mongoDbFactory" /&gt;
      &lt;constructor-arg name="mongoConverter" ref="mappingMongoConverter" /&gt;   
      &lt;property name="writeConcern"&gt;
          &lt;util:constant static-field="com.mongodb.WriteConcern.SAFE" &gt;&lt;/util:constant&gt;
      &lt;/property&gt;
   &lt;/bean&gt;
  </code></pre>
  
  <p>jars/Drivers used:<br>
  spring-beans-3.2.0.RELEASE.jar
  mongo-java-driver-2.11.3.jar</p>
  
  <p><P>
  Fixed it using below code:</p>
  
  <pre><code>&lt;bean id="mongoClient" class="com.mongodb.MongoClient"&gt;
      &lt;constructor-arg&gt;
          &lt;list&gt;
              &lt;value&gt;161.141.16.100:27017&lt;/value&gt;
              &lt;value&gt;161.141.16.101:27017&lt;/value&gt;
          &lt;/list&gt;
      &lt;/constructor-arg&gt;
  &lt;/bean&gt;
  
  &lt;mongo:db-factory id="mongoDbFactory" dbname="test" mongo-ref="mongoClient"/&gt;
  </code></pre>