Jpa查询之Specification使用
不使用Specification查询的JpaRepository类:
@Repository
public interface ProduceRepo extends JpaRepository<Produce, Integer>{
}
使用Specification查询的JpaRepository类:
@Repository
public interface ProduceRepo extends JpaRepository<Produce, Integer>, JpaSpecificationExecutor<Produce> {
}
还没有评论,来说两句吧...