CF Sample App Java A sample Java Spark application to deploy to Cloud Foundry which works out of the box. Run locally Install the Java JDK Run ./gradlew build Run java -jar build/libs/cf-sample-app-java-1.0.0.jar Visit http://localhost:4567 Run in the cloud Install the Java JDK Install the cf CLI Run ./gradlew build Run cf push my-java-app -p build/libs/cf-sample-app-java-1.0.0.jar --random-route Visit the given URL