findByUserIdAndPassword(userId,密码);

时间:2018-09-26 10:23:12

标签: java dto

当我试图通过此查询获取记录时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);
}

代码图片:

Image of code

0 个答案:

没有答案