I am using the MongoDriver as external JBOSS module. I am looking for a way to programmatically detect which driver version I am actually using. For clarity sake, I wish to do something such as:
MongoClient mc = new MongoClient(...).getDriverVersion();
// Returns something such as 3.8.2
How can I do that? I can't find it in the documentation.
String mongoVersion = MongoDriverVersion.VERSION;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.