A sample application built with Spring Boot that demonstrates capabilities of Cloud Foundry.
$ ./mvnw spring-boot:run
Then go to the http://localhost:8080 in your browser. The application uses an embedded H2 database when running in this mode.
$ ./mvnw package
$ cf push
When a MySQL database is bound to this application, the application will use the MySQL database instead of the embedded H2 database.
This is all based on work from the following:
- Andrew Ripka's cf-workshop-spring-boot github repo
- Marcelo Borges pcf-ers-demo