kimtth / spring-boot-mybatis-restful

πŸ› sample restful service by spring boot & mybatis & maven

Repository from Github https://github.comkimtth/spring-boot-mybatis-restfulRepository from Github https://github.comkimtth/spring-boot-mybatis-restful

spring boot restful

simple restful service by spring boot & mybatis & maven

installation

$ mvn spring-boot:run

development

spring Boot / maven / mybatis / h2 db / tomcat

restful spec

  • Add: @RequestMapping(value = "/user", method = RequestMethod.POST)
  • Update: @RequestMapping(value = "/user/{id}", method = RequestMethod.PUT)
  • Delete: @RequestMapping(value = "/user/{id}", method = RequestMethod.DELETE)
  • List: @RequestMapping(value = "/user/{id}", method = RequestMethod.GET)
  • List All: @RequestMapping(value = "/users", method = RequestMethod.GET)

test: postman

  • example: adding data

demo_restful

About

πŸ› sample restful service by spring boot & mybatis & maven


Languages

Language:Java 54.1%Language:Shell 25.9%Language:Batchfile 20.0%