SpringBoot使用SpringDataJPA完成CRUD

创建UserJPA接口并且继承SpringDataJPA内的接口作为父类; UserJPA继承了JpaRepository接口(SpringDataJPA提供的简单数据操作接口)、JpaSpecificationExecutor(SpringDataJPA提供的复杂查询接口)、Serializable(序列化接口)。 SpringDataJPA内部使用了类代理的方式让继承了它接口的子接口都以spr
相关文章
相关标签/搜索