Problem Description
java.lang.NoSuchMethodError:com.easemob.im.server.api.user.UserApi.create(Ljava/lang/String;Ljava/lang/String;)Lreactor/core/publisher/Mono;
Solution
It is a version conflict problem. Check carefully whether the springBoot version corresponds to the version of dubbo and mongodb that needs to be used in the module. Or directly use the version lock corresponding to springBoot.
before fixing:
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver-sync</artifactId>
<version>3.4.2</version>
</dependency>
The imported version conflicts with the locked version in springBoot
After modification:
Consistent with the corresponding version of springBoot
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver-sync</artifactId>
<version>4.0.5</version>
</dependency>
Or use ${} directly for version locking
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver-sync</artifactId>
<version>${mongodb.version}</version>
</dependency>
So far the problem is solved
Check carefully whether the versions conflict and are consistent.