问题:
无法将接口org.springframework.data.repository.query.QueryByExampleExecutor中的方法 findOne应用到给定类型;
解决方案:
Spring Boot2.0.0以上版本:
将findOne(id) 改为 findById(id).get()
将delete(id) 改为 deleteById(id)
问题:
无法将接口org.springframework.data.repository.query.QueryByExampleExecutor中的方法 findOne应用到给定类型;
解决方案:
Spring Boot2.0.0以上版本:
将findOne(id) 改为 findById(id).get()
将delete(id) 改为 deleteById(id)