- First of all from myGithubDownload my Hello World Servlet locally.
Install Maven, and then run MVN clean install to make sure the build is successful. The target folder in the project root directory contains demo.war.
- Put demo.war in your local Tomcat Webapps folder. Start local Tomcat to ensure that the servlet works locally.
Then switch back to the project root directory and perform a CF push deployment to your CloudFoundry.
Manifest.yml I’ve edited it to look like this:
Once deployed, access the Servlet deployed on CloudFoundry in a browser:
For more of Jerry’s original technical articles, please follow the public account “Wang Zixi” or scan the following QR code: