RESTful API demo with Spring Boot
.
-
You need to install
Java 1.8.0 or above, Maven 3.2.1 or above, MYSQL
first. -
Wit-Neptune-Tree
# ls
pom.xml wit-common wit-persist wit-rest wit-service
-
Update the below configurations with your real database account to
wit-rest/src/main/resources/application.yml
username: root
password: 123456
-
Package
wit-neptune
withmaven
tools.
# mvn clean install
# ls wit-rest/target/wit-rest-1.0.jar
wit-rest/target/wit-rest-1.0.jar
-
Start Spring Boot application.
java -jar wit-rest/target/wit-rest-1.0.jar
-
UT by Wisdom RESTClient , import testing case file.
More about the usages of the tool, please visit Wisdom RESTClient.