Git Product home page Git Product logo

2018-03-29-03-10-12-1522293012's Introduction

Spring Data JPA

练习描述

  • 学习如何在已有的 Spring Boot 项目基础上,添加 Spring Data JPA 完成对数据库的各种操作
  • 学习使用 Spring Data JPA 来操作实体对象,执行对MySQL的 CRUD (增删改查) 操作
  • 学习使用 Flyway 对数据库做版本控制

环境要求

  • java8
  • spring-boot
  • Intellij-IDEA
  • MySQL

如何开始

  • 在命令行中使用以下命令在用户本地任意目录下clone此题目库
  • 本地启动 MySQL Service
  • 搭建数据库employee_db
  • build.gradle中添加 Spring Data JPA 以及 Flyway Core 等依赖
  • 并将数据库的 url username password 配置到项目中
  • 执行 ./gradlew test ,此时测试都是失败的
  • 开始按照题目要求创建entity,完成实现和测试

输出规范

  • 仔细阅读 src/test/java/EmployeeJPATest 中的需求描述,并在 src/main/java/repository 中将实现补全
  • 执行 ./gradlew test,出现BUILD SUCCESS,即完成题目

2018-03-29-03-10-12-1522293012's People

Contributors

recruiting-system avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.