Ich bin mit diesem Problem konfrontiert mit einem einfachen Feder Boot-2-Projekt mit justen 2 RepositoriesFederverschluß 2.0.0.M4 ClassNotFoundException: com.mongodb.reactivestreams.client.MongoClient
https://github.com/mmaryo/spring-boot-2-mongo-dbref-example
@Test
public void testMongoDbRef() {
AccountEntity account = new AccountEntity();
account.setName("Github");
account = accountRepository.save(account).block();
CustomerEntity customer = new CustomerEntity();
customer.setFirstName("Victor");
customer.setLastName("Hugo");
customer.setAccount(account);
customerRepository.save(customer).block();
}
Dieser Code führt diesen Fehler:
Caused by: java.lang.TypeNotPresentException: Type com.mongodb.reactivestreams.client.MongoClient not present Caused by: java.lang.ClassNotFoundException: com.mongodb.reactivestreams.client.MongoClient
ich benutze mongo v3.4.3
Haben Sie eine Idee, um dieses Problem zu lösen?
Haben Sie diese Abhängigkeit in pom-Datei überprüft? –