Skip to content

open-toolchain/java-spring-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IBM Cloud

IBM Cloud platform Apache 2

Create and deploy a basic Java Spring application

DISCLAIMER: Vulnerabilities may be addressed at a future date and app is provided as is, not production but sample code.

In this sample application, you will create a basic Java cloud application using Spring. This provides a good starting point for creating Java microservice applications running on Spring. It contains no default application code, but comes with standard best practices, including a health check.

Capabilities are provided through dependencies in the pom.xml file. The ports are set to the defaults of 8080 for http is exposed. The ports are set in the pom.xml file.

The application exposes the following endpoints:

Steps

You can deploy this application to IBM Cloud or build it locally by cloning this repo first. Once your app is live, you can access the /health endpoint to build out your cloud native application.

Deploying to IBM Cloud

Deploy to IBM Cloud

Click Deploy to IBM Cloud to deploy this same application to IBM Cloud. This option creates a deployment pipeline, complete with a hosted GitLab project and a DevOps toolchain. You can deploy your app to Virtual Server (Virtual Machine). Cleick here for More Details

Building Locally

To get started building this application locally, you can either run the application natively or use the IBM Cloud Developer Tools for building the application to IBM Cloud.

Native Application Development

To build and run an application:

  1. mvn install
  2. java -jar ./target/javaspringapp-1.0-SNAPSHOT.jar

You can verify the state of your locally running application using the Selenium UI test script included in the scripts directory.

Next Steps

License

This sample application is licensed under the Apache License, Version 2. Separate third-party code objects invoked within this code pattern are licensed by their respective providers pursuant to their own separate licenses. Contributions are subject to the Developer Certificate of Origin, Version 1.1 and the Apache License, Version 2.

Apache License FAQ

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 14