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