Giter Club home page Giter Club logo

javatest5's Introduction

JavaTest5

git clone https://github.com/caojiameng/JavaTest5.git

cd JavaTest5

sh build.sh

再打开一个gitbash,进入刚才的项目目录 cd Exam1

mvn spring-boot:run

再打开一个gitbashm,进入刚才的项目目录

cd Exam1

查看是否可以登录

curl http://localhost:8080/film/signin/{MARY}{SMITH}

查询

curl http://localhost:8080/film/all

添加

curl -H "Content-Type:application/json" -X POST -d '{"firstName":"cao","lastName":"jiameng","email":"[email protected]","addressId":"5","storeId":"1"}' http://localhost:8080/film/add

更新

curl -H "Content-Type:application/json" -X POST -d '{"firstName":"cao1","lastName":"jiameng","email":"[email protected]","addressId":"5","storeId":"1","customerId":"1"}' http://localhost:8080/film/update

删除

curl -H "Content-Type:application/json" -X DELETE '{"customerId":1}' http://localhost:8080/film/delete/1

可用以下语句查询修改后的Person表

curl http://localhost:8080/film/person/all

并没有设置环境变量 请在配置文件中自行修改数据库地址

javatest5's People

Contributors

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