Name: hello-spring-cloud
Owner: Cloud Foundry Sample Applications
Description: Spring Cloud Connectors sample application.
Created: 2014-06-02 22:19:37.0
Updated: 2017-11-04 07:20:21.0
Pushed: 2017-05-01 16:53:36.0
Homepage: http://cloud.spring.io/spring-cloud-connectors/
Size: 452
Language: Java
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A Spring Boot application that uses Spring Cloud Connectors to connect to cloud services and get information about cloud environment.
Use Maven to build the application:
n clean package
To run the application on Cloud Foundry, first target and long into a Cloud Foundry environment, then run this command:
push
The application will be deployed using settings in the provided manifest.yml
file. The output from the command will show the URL that has been assigned to the application. Browse to the provided URL to view information about the application.
Using the provided manifest, the application will not be bound to any data services. The application UI will show default connections provided by Spring Boot. You can create relational database, Redis, MongoDB, and AMQP services and bind them to the application to test creation of service connections with Spring Cloud Connectors.
On Pivotal Web Services you can create and bind each type of service using these commands:
create-service cleardb spark mysql-service
bind-service hello-spring-cloud mysql-service
create-service rediscloud 30mb redis-service
bind-service hello-spring-cloud redis-service
create-service mlab sandbox mongodb-service
bind-service hello-spring-cloud mongodb-service
create-service cloudamqp spark amqp-service
bind-service hello-spring-cloud amqp-service
restart
On Pivotal Cloud Foundry you can create and bind each type of service using these commands:
create-service p-mysql 100mb mysql-service
bind-service hello-spring-cloud mysql-service
create-service p-redis shared-vm redis-service
bind-service hello-spring-cloud redis-service
create-service p-rabbitmq standard amqp-service
bind-service hello-spring-cloud amqp-service
restart
Consult the Pivotal Cloud Foundry documentation for more details.