@Test public void testSelectById() { UserDO userDO = userDao.findById(1); System.out.println(userDO); }
public UserDO findById(Integer id) { return mongoTemplate.findOne(new Query(Criteria.where("_id").is(id)), UserDO.class); }
UserDao { public UserDO findById(Integer id) { return mongoTemplate.findOne(new Query(Criteria.where("_id").is(id)), UserDO.class); } }
UserDao { public UserDO findById(Integer id) { return mongoTemplate.findOne(new Query(Criteria.where("_id").is(id)), UserDO.class); }  }
UserDao { public UserDO findById(Integer id) { return mongoTemplate.findOne(new Query(Criteria.where("_id").is(id)), UserDO.class); }  void insert(UserDO entity); void updateById(UserDO entity); void deleteById(Integer id); UserDO findById(Integer id); UserDO findByUsername(String username); List<UserDO> findAllById(List<Integer> ids); }
UserDao { public UserDO findById(Integer id) { return mongoTemplate.findOne(new Query(Criteria.where("_id").is(id)), UserDO.class); }  void insert(UserDO entity); void updateById(UserDO entity); void deleteById(Integer id); UserDO findById(Integer id); UserDO findByUsername(String username); List<UserDO> findAllById(List<Integer> ids);  }