Different ways to configure spring data in xml conf:
Spring data mongo conf using factory <!-- Spring data mongo conf using factory --> <mongo:mongo id="mongo" replica-set="${mongo.database.url}" /> <mongo:db-factory id="mongoDbFactory" mongo-ref="mongo" dbname="${mongo.database.name}" username="$
Continue Reading