我的艾德说,'Specifications<T : Any!>' is deprecated. Deprecated in Java.,我应该用什么代替?
import org.springframework.data.jpa.domain.Specifications
fun hasName(name: String?): Specifications<User>? = name?.let{User::name.equal(it) }发布于 2019-07-18 11:19:05
但是在这里,我认为您只需要将返回类型更改为Specification ( Specifications实现的)。
https://stackoverflow.com/questions/57093150
复制相似问题