According to http://www.springframework.org/schem...-mongo-1.0.xsd

type of mongo:options -> max-auto-connect-retry-time attribute is long:

Code:
<xsd:attribute name="max-auto-connect-retry-time" type="xsd:long">
    <xsd:annotation>
        <xsd:documentation>
            <![CDATA[
            The maximum amount of time in millisecons to spend retrying to open connection to the same server.Default is 0, which means to use the default 15s if autoConnectRetry is on.
            ]]>
        </xsd:documentation>
    </xsd:annotation>
</xsd:attribute>
As a result it's not possible to use property placeholders in XML configuration for this property:

Code:
<mongo:mongo host="${mongo.host}" port="${mongo.port}">
    <mongo:options max-auto-connect-retry-time="${mongo.max-auto-connect-retry-time}" />
</mongo:mongo>
Error: The value '${mongo.max-auto-connect-retry-time}' of attribute 'max-auto-connect-retry-time' on element 'mongo:options' is not valid with respect to its type, 'long'.

And compilation error as well.

Please fix the problem or suggest some way to avoid this issue.