Code Monkey home page Code Monkey logo

ctcjingxi's Introduction

Spring Data JPA

练习描述

本题要求使用 Spring Data JPA 来操作实体对象Company,Employee,实现对数据库的 CRUD (增删改查) 操作。

  • 要求使用 Flyway Core 对数据库做版本控制
  • 完成题目需求使得测试全部通过

note:

  • 请不要修改项目中mysql的用户名和密码,否则测试不通过!

环境要求

  • java8
  • Intellij-IDEA

如何开始

  • 克隆模版库
  • 本地启动 MySQL
  • 搭建数据库employee_db
  • build.gradle中添加 Spring Data JPA 以及 Flyway Core 等依赖
  • 根目录下执行 ./gradlew test ,此时测试都是失败的
  • 开始在main下的entity中创建实体
  • 开始在main下的repository中完成实现
  • 开始在test下的EmployeeJPATest中完成测试

如何测试

  • 根目录下执行./gradlew clean test,查看测试结果

输出规范

  • 完成需求的代码和测试

ctcjingxi's People

Contributors

ctcxiao avatar

Watchers

 avatar  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.