The mongo: db-factory element is available from Spring -Data 1.0 Milestone 3 . The package can be downloaded from here , and the documentation can be found at Spring -Data 1.0.0.M3 Documentation .
To use it from Maven, simply include the following dependency in the pom.xml file:
<dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-mongodb</artifactId> <version>1.0.0.M3</version> </dependency>
You probably used the code version 1.0.0.M2 ( Spring-Data 1.0.0.M2 Documentation ), where db-factory was not yet available in XSD or online documentation.
source share