Added xml configuration for GridFS
This commit is contained in:
parent
c6be2af18f
commit
7defd5d598
|
@ -14,6 +14,11 @@
|
||||||
<bean id="mongo" class="org.springframework.data.mongodb.core.MongoFactoryBean">
|
<bean id="mongo" class="org.springframework.data.mongodb.core.MongoFactoryBean">
|
||||||
<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"/>
|
||||||
|
|
Loading…
Reference in New Issue