Execute the below command using Gradle from the project directory:
./gradlew bootRunAlternatively, if you're using Maven, execute the following command from the project directory:
./mvnw spring-boot:runTo test the application, open a web browser and navigate to:
http://localhost:8080

At this point, we can start the chapter17.00-authorization-server and chapter17.02-calendar and we will be ready to send OAuth 2 requests.
curl -i -X POST \
http://localhost:9000/oauth2/token \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'grant_type=client_credentials&client_id=jbcp-calendar&&client_secret=secret&scope=events.read'Now we will take the access_token and use that token to initiate additional requests to the server with the following format:
curl -k -i http://localhost:8080/events/ \
-H "Authorization: Bearer <access_token>"