@ResponseBody returns empty object
问题 When I use below to get the user object it works just fine. @GetMapping("/findOne") @ResponseBody public Optional<AppUser> findOne (Long id) { return appUserRepository.findById(id); } Above gives me a response back as: {"id":1,"useruuid":"863db606-9af6-48a8-963a-07b9fe0fc4fc","useremail":"user1@mydomain.com"} Now, I am trying to search based on UUID(4) using this: @GetMapping("/findOneUsingUUID") @ResponseBody public AppUser findOne (String useruuid) { return appUserRepository.findByUseruuid