Java Jhipster获取一个对象与获取列表
我想打印pdf文档以获取医生名单,我通过以下方式成功获取名单:Java Jhipster获取一个对象与获取列表,java,spring-boot,jhipster,Java,Spring Boot,Jhipster,我想打印pdf文档以获取医生名单,我通过以下方式成功获取名单: final List<Doctor> page = doctorRepository.findAll(); 但它不起作用。你有id为1L的医生吗?我有methode findOne(id)我的问题是在你的数据库中是否有id/主键为1L的记录。是的,可以,我解决它。非常感谢。 Doctor d = doctorRepository.findOne(1L);
final List<Doctor> page = doctorRepository.findAll();
但它不起作用。你有id为1L的医生吗?我有methode findOne(id)我的问题是在你的数据库中是否有id/主键为1L的记录。是的,可以,我解决它。非常感谢。
Doctor d = doctorRepository.findOne(1L);