我有一个JhipsterSpring启动项目。最近我从mlabs独立沙箱转移到Atlas集群沙箱M0免费层副本集。它甚至可以工作,我已经对它进行了一些数据库操作。但是现在由于某种原因出现了读取权限错误Errorcreatingbeanwithname'mongobee'definedinclasspathresource[DatabaseConfiguration.class]:Invocationofinitmethodfailed;nestedexceptioniscom.mongodb.MongoQueryException:Queryfailedwitherrorcode800
到目前为止,我使用的是最新版本的jhipster(3.6.1),它使用MongoBee进行mongodb迁移。我想知道在MongoBee迁移类中使用spring数据仓库或MongoTemplate的后果我不想使用DB类,因为我必须将我的属性名称写成字符串,如下所示。所以我想使用我的实体(Document)并为此使用setter。@ChangeSet(order="01",author="initiator",id="01-addAuthorities")publicvoidaddAuthorities(DBdb){DBCollectionauthorityCollection=db.g
尝试运行Spring-boot应用程序(v2.1.0)时出现以下错误:Description:Anattemptwasmadetocallthemethodorg.springframework.data.mongodb.core.MongoTemplate.(Lcom/mongodb/Mongo;Ljava/lang/String;)Vbutitdoesnotexist.Itsclass,org.springframework.data.mongodb.core.MongoTemplate,isavailablefromthefollowinglocations:file:/C:/U