更新时间:2022-06-18 10:13:08
好吧,我认为您要连接到 Mongo Atlas,您的 application.properties 应该有 spring.data.mongodb.uri 而不是 spring.data.mongodb.host.spring.data.mongodb.uri: mongodb://
我认为这可能有效`
Well, I think your to connect to Mongo Atlas your application.properties should have spring.data.mongodb.uri instead of spring.data.mongodb.host.spring.data.mongodb.uri: mongodb://<user>:<passwd>@<host>:<port>/<dbname>
I think this may work
`