morphia 正则查询(Pattern忽略大小写查询)

71 阅读1分钟

1.方式一:

db.exists("account", Pattern.compile(example.getAccount(),Pattern.CASE_INSENSITIVE))