Added xml configuration for GridFS

This commit is contained in:
coach88 2015-09-27 12:13:29 +03:00
parent c6be2af18f
commit 7defd5d598
1 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,11 @@
<bean id="mongo" class="org.springframework.data.mongodb.core.MongoFactoryBean">
<property name="host" value="localhost"/>
</bean>
<bean id="gridFsTemplate" class="org.springframework.data.mongodb.gridfs.GridFsTemplate">
<constructor-arg ref="mongoDbFactory" />
<constructor-arg ref="mongoConverter" />
</bean>
<bean id="mongoTemplate" class="org.springframework.data.mongodb.core.MongoTemplate">
<constructor-arg name="mongo" ref="mongo"/>