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
Note
: When updating this application please make sure the corresponding instructions are updated within the following dependent courses. The instructions for these labs may not change but please review before pushing application to production with this pipeline.