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

@ -15,6 +15,11 @@
<property name="host" value="localhost"/> <property name="host" value="localhost"/>
</bean> </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"> <bean id="mongoTemplate" class="org.springframework.data.mongodb.core.MongoTemplate">
<constructor-arg name="mongo" ref="mongo"/> <constructor-arg name="mongo" ref="mongo"/>
<constructor-arg ref="mongoConverter" /> <constructor-arg ref="mongoConverter" />