Template for REST webservice with spring
- Java 8
- Spring Boot
- Maven 3
- Release plugin
- FindBugs plugin
- JUnit
To generate local builds with maven:
mvn clean install
To generate versioned builds for production and homologation enviroments:
mvn release:clean
mvn release:prepare
After building project, get .war file and run on your current web server:
- Tomcat
./startup.sh
Call this curl to get your access token:
curl -X POST clientIdPassword:secret@localhost:8080//basic-oauth/oauth/token -d grant_type=password -d username=john -d password=123 -d client_id=clientIdPassword
Call the curl with token like this to make use of the methods:
curl -H "Authorization: Bearer $TOKEN" localhost:8080/basic-oauth/