Features:
- spring-boot 2.0.3.RELEASE
- kotlin 1.2.50
- JWT Authentication/Authorization with spring-security inspired by Auth0
- JPA mysql
- Junit 5 Tests
- Travis CI
- create mysql db
CREATE DATABASE starterspringkotlin;
GRANT ALL ON starterspringkotlin.* TO starterspringkotlin@localhost IDENTIFIED BY 'starterspringkotlin';
FLUSH PRIVILEGES;
- compile and run
mvn clean compile test
mvn spring-boot:run
curl http://localhost:8080/api/test
curl http://localhost:8080/api/restricted
curl -i -H "Content-Type: application/json" -X POST -d '{ "username": "john.doe", "password": "test1234"}' http://localhost:8080/login
curl -H "Authorization: Bearer ******" http://localhost:8080/api/restricted
curl -H "Authorization: Bearer ******" http://localhost:8080/actuator/health
- v0.0.4-SNAPSHOT: update spring-boot 2.0.3.RELEASE
- v0.0.3-SNAPSHOT: update spring-boot 2.0.2.RELEASE, kotlin 1.2.50, removed custom RestExceptionHandler
- v0.0.2-SNAPSHOT: update spring-boot 2.0.0.RELEASE, kotlin 1.2.30, Junit5 5.1.0