All Projects → SAP-archive → cloud-hello-spring-cloud

SAP-archive / cloud-hello-spring-cloud

Licence: other
Simple sample demonstrating the usage of Spring Cloud Connectors

Programming Languages

java
68154 projects - #9 most used programming language
HTML
75241 projects

Important Notice

SAP has decided to stop the maintenance of this open source project and hence it'll soon be sunsetted and archived.

Going forward, please look at SAP Cloud Platform Appliation Programming Model as the recommended approach to develop cloud applications with SAP Cloud Platform.

SAP Cloud Platform Samples - hello spring cloud

This project demonstrates the usage of Spring Cloud Connectors within a classic web application. In fact, it's a fork/rewrite of a sample application provided as part of the Cloud Foundry samples.

The main differences between the original sample and this fork/rewrite are as follows:

  • the original version used Spring Boot, this fork sticks to the classic approach of Spring
  • the original version compiles to a JAR file, this fork uses the classic WAR format for deployment
  • this fork provides the needed dependencies to run the application on the SAP Cloud Platform

NOTE: For further information please refer to the respective blog post: Released: Spring Cloud Connectors for HCP

Quick start

Clone the repo, git clone https://github.com/SAP/cloud-hello-spring-cloud.git, or download the latest release, then run a Maven build and deploy the application to your cloud platform of choice.

SAP Cloud Platform

The application should run as-is without any changes required.

NOTE: If you intend to deploy this application locally, you need to add the HC_LANDSCAPE environment variable to your local server launch configuration. Use an arbitrary value e.g. local.

Cloud Foundry

Please remember to adjust the declared services within the manifest.yml file as required for your runtime environment!

NOTE: If you intend to deploy this application to a Cloud Foundry landscape provided by SAP or its partners in order to leverage the capabilities of the SAP HANA database platform you need to manually provide the HANA JDBC driver (ngdbc.jar) within the WEB-INF/lib folder.

Authors

Matthias Steiner

Copyright and license

Copyright (c) 2014 SAP SE

Except as provided below, this software is licensed under the Apache License, Version 2.0 (the "License"); you may not use this software except in compliance with the License.You may obtain a copy of the License at:

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].