java - Is Spring mongoTemplate thread safe? -


i define bean:

<bean id="mongotemplate" class="org.springframework.data.mongodb.core.mongotemplate">     <constructor-arg name="mongodbfactory" ref="mongodbfactory" />     <constructor-arg name="mongoconverter" ref="mongoconverter" /> </bean>   

and instantiate mongooprations using bean, want know spring mongotemplate thread safe?

as per spring docs.

once configured, mongotemplate thread-safe , can reused across multiple instances.

for more details see section 5.4