A simple RESTful Service using Spring Boot that autoconfigure JAX-RS Beans
Clone from git:
git clone https://github.com/adolfojunior/spring-boot-demo.git
cd spring-boot-demo
Use the embedded maven wrapper to package it and run it!
./mvnw clean package
./mvnw spring-boot:run or java -jar target/*.jar
Check if everything is ok: http://localhost:8080/api
curl http://localhost:8080/apicurl http://localhost:8080/healthcurl http://localhost:8080/metrics
App Endpoints:
curl -X GET http://localhost:8080/api/postcurl -X GET http://localhost:8080/api/post/1
Check PORT and PROFILE
git remote add heroku -f <heroku-git-repo-url>
git push heroku master
Check the deploy files:
Use the DIY Linux!
git remote add openshift -f <openshift-git-repo-url>
git merge openshift/master -s recursive -X ours
git push openshift master