Cloud Foundry

The Cloud Foundry Java buildpack has excellent support for Spring Boot. We can deploy standalone applications based on JARs as well as the traditional Java EE WAR applications.

Cloud Foundry provides a Maven plugin to deploy applications:

<build>   <plugins>      <plugin>         <groupId>org.cloudfoundry</groupId>         <artifactId>cf-maven-plugin</artifactId>         <version>1.1.2</version>      </plugin>   </plugins></build>

Before we can deploy our application, we need to configure the application with a target and a space to deploy the application to.

The following are the steps involved:

  1. We need to create a pivotal Cloud Foundry account at ;https://account.run.pivotal.io/sign-up.
  2. Once we have an account, we can log in at https://run.pivotal.io to create ...

Get Mastering Spring 5.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.