The method findOne(Example<S>) in the type QueryByExampleExecutor<Student> is not applicable for the
问题描述:The method findOne(Example) in the type QueryByExampleExecutor is not applicable for the arguments (int)
问题原因:新版本的springboot没有findOne(int id)这个方法了
解决方案:使用findById(Integer id).orElse(null),这里表示,如果...
转载
2019-05-09 09:31:53 ·
1188 阅读 ·
0 评论