Questions tagged [embedded-mongodb]

8 questions
7
votes
4 answers

How to use embedded MongoDB with SpringBoot v3.0.0?

I'm trying to connect embedded mongodb and test it with MongoDbSpringIntegrationTest. The problem is that the identical code works with spring boot in 2.7.7 but doesn't work with spring boot in 3.0.0. The question is how can I enable embedded…
Suori
  • 71
  • 1
  • 2
1
vote
0 answers

Error creating bean with name 'embeddedMongoServer'

I have an experimental Spring Boot Service that uses MongoDB. I've tried to write some unit tests with the 'de.flapdoodle.embed:de.flapdoodle.embed.mongo' dependency. However, the tests are generating an error: java.lang.IllegalStateException:…
Hofbr
  • 868
  • 9
  • 31
1
vote
0 answers

Spring Boot Embedded MongoDB - Run script from java to create function and upload massive data

I'm using in Spring Boot, *Embedded MongoDB to do build testing. I need some Collections created, some Documents loaded and a function created in the "system.js" Collection to manage a sequence. I couldn't figure out how to do this with properties…
pagurix
  • 1,926
  • 1
  • 12
  • 8
0
votes
0 answers

Spring 3.x Integration Test with Embedded MongoDb

I'm trying to create a Integration test of a Spring Boot controller running against a MongoDB embedded database with Spring 3.x but I have been unable to configure it correctly. As I have read if I'm using @SpringBootTest and @AutoConfigureDataMongo…
0
votes
0 answers

Embedding Authenticated Mongo Charts in ReactJS

I am trying to embed Mongo Charts in Reactjs in an Authenticated manner using Python3 Flask for creating JWT. BAckend - Python Flask header = { "alg": "HS256", "typ": "JWT" } forToken = {} forToken["firstname"] =…
0
votes
0 answers

Problem while Downloding .tgz from our nexus repo instead of local path using embedded flapdoodle 4.7.0

While using embedded flapdoodle version < 4 I was using the below method to download .tgz from our Nexus repository: if(StringUtils.isNotBlank(url) && StringUtils.isNotBlank(archivePath)) { Command command = Command.MongoD; …
0
votes
1 answer

Embedded Mongo migration from spring boot 2.7 to 3.1.1

I was using de.flapdoodle.embed:de.flapdoodle.embed.mongo:3.5.0 I have created EmbeddedMongoServer class, where I am importing MongoProcess MongodStarter Defaults MongodConfig RuntimeConfig MongodExecutable However, I want to upgrade my internal…
0
votes
1 answer

No Spring ServletWebServerFactory when excluding embedded MongoDB classes

I have a typical Spring Boot REST server: … @SpringBootApplication public class MyService { public static void main(String[] args) { SpringApplication.run(MyService.class, args); } } I include…
Garret Wilson
  • 18,219
  • 30
  • 144
  • 272