A rest web service sample writen in kotlin and based on spring-boot.
brew install gradle
gradle --version
# should >= 4.7
gradle build
-
create db
Create a database named 'db_tms' with 'utf8mb4' encoding and 'utf8mb4_general_ci' in mysql. You can configure your db url in
src/main/resources/application.yaml
. -
run the init sql
You can find the sql file in
src/test/resources/init_db.sql
.
gradle bootRun
Just open http://localhost:8080/api/issue in your browser.