SpringBoot-JPA杂记,旧版findOne

    xiaoxiao2023-11-04  150

    报错:Inferred type 'S' for type parameter 'S' is not within its bound

    旧版使用findOne进行查找,新版本可以使用XXXX.findById(id).orElse(null);代替,返回的同样是个对象

    最新回复(0)