在部署本地服务器运行的MONGODB数据库,可能会报上述错误;
从字面意思上看,与服务器备份有关;
stackoverflow.com给出的解决方案如下;
个人配置如下:
<mongo:mongo-client id="mongo" host="${mongo.host}" port="${mongo.port}" credentials="${mongo.credentials}">
<mongo:client-options
threads-allowed-to-block-for-connection-multiplier="${mongo.allowdThreads}"
connect-timeout="${mongo.connectTimeout}" socket-timeout="${mongo.socketTimeout}"
/>
</mongo:mongo-client>
去掉writeConcern属性,问题解决;