项目作者: odenktools

项目描述 :
Sample SpringBoot
高级语言: Java
项目地址: git://github.com/odenktools/springboot-hackathon.git
创建时间: 2017-10-06T20:27:13Z
项目社区:https://github.com/odenktools/springboot-hackathon

开源协议:MIT License

下载


SpringBoot Framework Hackathon

Build

  1. ./gradlew build

Windows OS

  1. gradlew.bat build

Will produce build/libs/odenktools-springhackathon-0.1.0.jar

Run

  1. cd build/libs/
  2. java -jar odenktools-springhackathon-0.1.0.jar

Test

  1. curl -X GET http://localhost:8080/apikey/all
  1. curl -X POST \
  2. http://localhost:8080/apikey/add \
  3. -H 'content-type: application/json' \
  4. -d '{
  5. "keyCode":"sdf234234sdf",
  6. "secretKey":"123dsfsfd3767J"
  7. }'
  1. curl -X GET \
  2. 'http://localhost:8080/apikey/add?keyCode=sfdsdfsdfsdf&secretKey=123123asd12'