为Repository添加自定义方法

文章目录 1、为某个Repository添加自定义方法 一、定义一个接口PersonDao,声明要添加的方法。 二、提供该接口的实现类PersonRepositoryImpl。类名需在要与声明的 Repository 后添加 Impl,并实现PersonDao中声明的方法。 三、使用Repository 接口, 并继承PersonDao接口。 四、这时SpringData会自动加载PersonRe
相关文章
相关标签/搜索