mongo报错:Timed Out While Waiting For A Server That Matches AnyServerSelector{} After 10000 Ms解决

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mongo报错:Timed Out While Waiting For A Server That Matches AnyServerSelector{} After 10000 Ms解决相关的知识,希望对你有一定的参考价值。


错误如下:

mongo报错:Timed

我使用的mongdb的驱动是

<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongo-java-driver</artifactId>
<version>2.12.3</version>
</dependency>


需要将mongdb的版本改变

<dependency>  
<groupId>org.mongodb</groupId>
<artifactId>mongo-java-driver</artifactId>
<version>3.0.2</version>
</dependency>

这个估计是mongdb与Spring整合版本的问题




以上是关于mongo报错:Timed Out While Waiting For A Server That Matches AnyServerSelector{} After 10000 Ms解决的主要内容,如果未能解决你的问题,请参考以下文章

Nginx 高并发下报错 connect() failed (110: Connection timed out) while connecting to upstream

nginx 报错 upstream timed out (110: Connection timed out)解决方案

Pythonpip在线安装报错Read Timed out

task supervisor timed out 报错及解决

python 安装第三方库,超时报错--Read timed out.

pip安装selenium报错:Read timed out