@SpringBootApplication @EnableCloudFoundryClient public class CloudFoundryApplication extends Object
DiscoveryClient abstraction to list all
services available to the application. It should deployed to a Cloud Foundry
organization and space that has other applications deployed to it.
There is a sample file in the project root called hi-service.groovy which can
be deployed using the spring CLI and the cf CLI that works
appropriately for this example.
Either modify this application's application.yml configuration file to provide
credentials and other information for the Cloud Foundry the app is deployed to, or set
the following environment variables on the application (using cf set-env):
* CF_USERNAME * CF_PASSWORD * CF_ORG * CF_SPACE| Constructor and Description |
|---|
CloudFoundryApplication() |
public static void main(String[] args)
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.