根據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)
2019-05-16
delete 那個解決了么。。。
2018-10-29
delete 看看能不能用 girlReposityory.deleteById(id)
2018-07-28
試試這個:
2018-07-22
如何查看springboot的版本?
2018-07-11
既然它不讓這么查詢 那就用和老師一樣的自定義查詢方式 , 在接口中寫一個查詢方式就好了?
2018-07-01
出現這種問題的原因是,springboot 版本問題,將 2。1 版本換成 1。5。4 版本。
或者是將代碼改寫一下