https://github.com/movingtoweb/springexamples
Spring Boot Examples
https://github.com/movingtoweb/springexamples
Last synced: 5 months ago
JSON representation
Spring Boot Examples
- Host: GitHub
- URL: https://github.com/movingtoweb/springexamples
- Owner: MovingToWeb
- Created: 2016-09-20T09:12:06.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-21T11:59:58.000Z (about 9 years ago)
- Last Synced: 2024-12-31T21:09:59.804Z (about 1 year ago)
- Language: Java
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring Boot Examples
This project depicts the Spring Boot Example.
## Description
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 the `greeting` string from `application.yml`
- `/helloworld/name` - This returns the value of config `config.app.name` from `application.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
}`
## Libraries used
- Spring Boot v 1.4.3
- Spring Configuration
- Spring REST Controller
- Spring JPA
- H2
## Development Tools
- Git 2.10.0
- IntelliJ IDEA 2016.2.4 for Mac
## Compilation Command
- `mvn clean install` - Plain maven clean and install
## Deployment steps for Cloud Foundry
- `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`