ExampleMatcher ,在查询非int 或boolean 字段时要使用 withIgnorePaths() 忽略 int 和boolean 字段,要不然查询不到值
摘要:
这个今天使用mongo 查询数据遇到的bug, 这实体类中 有两个字段 oldExceptDesposit 和newExceptDeposit 是int 类型,查询不需要它们。可是在查询的时候不用withIgnorePath 忽略它们,就查询不到数据。 注意boolean 类型的字段也要 忽略一下 阅读全文
posted @ 2021-06-22 17:36 prader6 阅读(475) 评论(0) 推荐(0)
浙公网安备 33010602011771号