I use mongodb embbeded for unit test or manipulate real database. i have some problrm that my service using authentication for it.
this is, how my service access database mongodb://"+this.usermongo+":"+this.passmongo+"@"+this.host+":"+this.port
<groupId>de.flapdoodle.embed</groupId>
<artifactId>de.flapdoodle.embed.mongo</artifactId>
<version>2.2.0</version>
<scope>test</scope>
</dependency>
i use mongo embbeded from flapdoodle. thanks anyway
Aucun commentaire:
Enregistrer un commentaire