当我试图通过此查询获取记录时findByUserIdAndPassword(userId,password);使用MongoRepository 但我总是在得到任何建议时都为空吗?
@RequestMapping(value = "/login", method = RequestMethod.GET)
public String loginValidation(@RequestParam String userId,@RequestParam String password) {
System.out.println("un"+userId);
System.out.println("password"+password);
Optional<TicketUserDto> ticketuser=ticketUserDao.findByUserIdAndPassword(userId, password);
}
代码图片: