首先需要定义实体类的接口,接口必须继承repository并且输入实体类型和ID类型,如果需要用到CRUD方法,可以使用 CrudRepository 来替代 Repository 。 3.3.1. 自定义接口.
確定! 回上一頁