execute mongo script from java after 'eval' function is deprecated in mongo 4.2 db

前端 未结 0 640
悲&欢浪女
悲&欢浪女 2020-12-22 17:13

BasicDBObject command = new BasicDBObject();

command.put("eval", "db.version()");

System.out.println(command);

mongoTemplate.execute

相关标签:
回答
  • 消灭零回复
提交回复
热议问题