-
Aug 26th, 2011, 03:47 AM
#1
mongo:options auto-connect-retry is unavailable
when specify mongo:options 's property auto-connect-retry, the exception is thrown as following:
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'auto-connect-retry' is not allowed to appear in element 'mongo:options'.
<mongo:mongo id="mongo" >
<mongo:options auto-connect-retry="true"/>
</mongo:mongo>
-
Aug 26th, 2011, 04:29 AM
#2
which schema and which spring data version are you using?
-
Aug 28th, 2011, 10:19 PM
#3
I meet the same trouble too.
If specify any property of mongodb options,the exception is thrown.
Last edited by wangyin; Aug 28th, 2011 at 10:27 PM.
-
Aug 28th, 2011, 10:41 PM
#4
Hi, Matthias,I have tested spring-data-mongodb-1.0.0.M3 and it worked!
It seems that this is a issue of spring-data-mongodb-1.0.0.M2.
-
Aug 29th, 2011, 07:44 AM
#5
in M2 it was camelCase
with M3 it changed to dash-notation
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules