logo
  • 教程列表
  • SO官方文档
  • 使用 JPA 的 Spring-Boot 微服务
    • 应用类
    • 书模型
    • 书库
    • 启用验证
    • 加载一些测试数据
    • 添加验证器
    • Gradle 构建文件
  1. StackOverflow 文档
  2. spring-boot 教程
  3. 使用 JPA 的 Spring-Boot 微服务
  4. 书库

书库

Created: November-22, 2018

package com.mcf7.spring.domain;

import org.springframework.data.repository.PagingAndSortingRepository;

public interface BookRepository extends PagingAndSortingRepository<Book, Long> {
}

基本的 Spring Repository 模式,除了我们为分页和排序等额外功能启用了 Paging and Sorting Repository :)

  • 启用验证
  • 书模型

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明