This project depicts the Spring Boot Example.
This Project shows the list of Users which are stored in the In-Memory H2 Database. Using the following endpoints, different operations can be achieved:
/helloworld
- This returns thegreeting
string fromapplication.yml
/helloworld/name
- This returns the value of configconfig.app.name
fromapplication.properties
/users
- This returns the list of Users in the Users table which is created in H2/users/name/{name}
- This returns the details of the Users passed in URL/users/load
- Add new users using the Users model. eg.{ "name": "Ajay", "teamName": "Development", "salary": 100 }
- Spring Boot v 1.4.3
- Spring Configuration
- Spring REST Controller
- Spring JPA
- H2
- Git 2.10.0
- IntelliJ IDEA 2016.2.4 for Mac
mvn clean install
- Plain maven clean and install
cf login -a api.run.pivotal.io
- Login to Cloud Foundry console using cf-cli.cf push
- Deploy the jar into Cloud Foundry.- In case you need to change the buildpacks. Use
-b https://github.com/cloudfoundry/java-buildpack.git#v3.7