Pattern pattern = Pattern.compile("^.*" + value + ".*$");
Query query = new Query();
query.addCriteria(Criteria.where("name").regex(pattern));
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/4192.html
Pattern pattern = Pattern.compile("^.*" + value + ".*$");
Query query = new Query();
query.addCriteria(Criteria.where("name").regex(pattern));
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/4192.html