Detailed error message:
Com.mongodb.MongoSocketOpenException:Exception Opening socket
At Com.mongodb.connection.SocketStream.open (socketstream.java:63) ~[mongodb-driver-core-3.4.2.jar:na]
At Com.mongodb.connection.InternalStreamConnection.open (internalstreamconnection.java:115) ~[ Mongodb-driver-core-3.4.2.jar:na]
At Com.mongodb.connection.defaultservermonitor$servermonitorrunnable.run (defaultservermonitor.java:113) ~[ Mongodb-driver-core-3.4.2.jar:na]
At Java.lang.Thread.run (thread.java:748) [na:1.8.0_131]
caused By:java.net.ConnectException:Connection refused:connect
At Java.net.DualStackPlainSocketImpl.waitForConnect (Native Method) ~[na:1.8.0_131]
At Java.net.DualStackPlainSocketImpl.socketConnect (dualstackplainsocketimpl.java:85) ~[na:1.8.0_131]
At Java.net.AbstractPlainSocketImpl.doConnect (abstractplainsocketimpl.java:350) ~[na:1.8.0_131]
At Java.net.AbstractPlainSocketImpl.connectToAddress (abstractplainsocketimpl.java:206) ~[na:1.8.0_131]
At Java.net.AbstractPlainSocketImpl.connect (abstractplainsocketimpl.java:188) ~[na:1.8.0_131]
At Java.net.PlainSocketImpl.connect (plainsocketimpl.java:172) ~[na:1.8.0_131]
At Java.net.SocksSocketImpl.connect (sockssocketimpl.java:392) ~[na:1.8.0_131]
At Java.net.Socket.connect (socket.java:589) ~[na:1.8.0_131]
At Com.mongodb.connection.SocketStreamHelper.initialize (socketstreamhelper.java:57) ~[ Mongodb-driver-core-3.4.2.jar:na]
At Com.mongodb.connection.SocketStream.open (socketstream.java:58) ~[mongodb-driver-core-3.4.2.jar:na]
... 3 Common frames omitted
The information for MongoDB is not configured in the Spring Boot project, and the start is always reported as abnormal, if used:
@SpringBootApplication (exclude = mongoautoconfiguration.class) annotation cancels the automatic configuration of spring boot and the project will not start.
Ask the great God to help answer, thank you.
Spring Boot boot error: com.mongodb.MongoSocketOpenException:Exception opening socket