根据ID查询返回语句报错
根据Id查询一个女生下面这个个返回会报错 return girlRepository.findOne(id); 报错信息Inferred type 'S' for type parameter 'S' is not within its bound; should extend 'com.yu.Girl 删除也会报错 @DeleteMapping(value = "/girls/{id}") public void girlDelete(@PathVariable("id") Integer id){ girlRepository.delete(id);---》id这里提示错误 } delete(com.yu.Girl)in CrudRepository cannot be appliedto(java.lang.Integer)