An open API service indexing awesome lists of open source software.

https://github.com/techprimers/spring-boot-cloud-foundry-example

Spring Boot Example which is deployed in Cloud Foundry
https://github.com/techprimers/spring-boot-cloud-foundry-example

cloud-foundry spring-boot spring-data-jpa spring-data-rest spring-mvc

Last synced: 13 days ago
JSON representation

Spring Boot Example which is deployed in Cloud Foundry

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
- Spring Configuration
- Spring REST Controller
- Spring JPA
- H2

## Development Tools
- Git 2.10.0
- IntelliJ IDEA 2016.2.4

## Compilation Command
- `mvn clean install` - Plain maven clean and install

## Deployment steps for Cloud Foundry
- `cf push spring-boot -p spring-boot-0.0.1-SNAPSHOT.jar` - 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`