Create a basic Java app in SAP HANA Cloud Platform
You will learn
In this tutorial series you will start from zero and develop a fully operational weather application. In total there are 10 parts to the series, each building on top of its predecessor. The entire source code of both the final and all intermediate parts are available on GitHub.
The constituent parts of this tutorial series cover the following:
How to create a simple web application on HCP
How to apply authentication and authorization
How to expose business functionality as an external RESTful API
How to add JPA-based persistence to your web app
How to leverage the multi-tenancy features of SAP HANA Cloud Platform
How to use the connectivity service to consume external services
How to add a mobile-friendly UI5-based user interface to the web application
In Part 1, you will develop a basic Java app to ensure that both Eclipse IDE and the local SAP HANA Cloud Platform (HCP) tooling have been properly installed and configured.
Create a new dynamic web project by selecting the File > New > Dynamic Web Project menu entry and enter the following information:
Target Runtime:Java Web
Dynamic Web Module Version:2.5
Click on Next
Remove the standard src Source folder and add a new one called src/main/java to create a project that adheres to the standard Maven Directory Layout.
Change the default output folder to target/classes
Click on Next.
Change the Content Directory from WebContent to src/main/webapp (again, to adhere to Maven conventions)
Click on Finish.
Make sure you have your weatherapp project folder selected, and then create a new Servlet by selecting the File > New > Servlet menu entry and enter the following information: