Example for Spring Boot + RESTful Service, using Maven build tool.
- Spring Boot 1.5.10.RELEASE
$ git clone https://github.com/MasterRyo/mymoney-api.git
$ ./mvnw clean package
$ echo #basic-security
$ java -jar target/mymoney-api-1.0.0-SNAPSHOT.jar
$ echo #oauth-security
$ java -Dspring.profiles.active=oauth-security -jar target/mymoney-api-1.0.0-SNAPSHOT.jar
GET /categorias HTTP/1.1
Host: localhost:8080
Authorization: Basic YWRtaW5AbXltb25leS5jb206YWRtaW4=
#### request access token
POST /oauth/token HTTP/1.1
Host: localhost:8080
Content-Type: application/x-www-form-urlencoded
Authorization: Basic YW5ndWxhcjpAbmd1bEByMA==
username=admin%40mymoney.com&password=admin&grant_type=password
#### request data
GET /categorias HTTP/1.1
Host: localhost:8080
Authorization: Bearer <access_token>
- File/Open Project from File System...
- Done.