LanguageGB
Java on App Hosting

Run your Spring Boot app on App Hosting.

Push your repository and we build it with Maven or Gradle, run the jar as a service and put it on your domain with HTTPS. Java runs on App Business (2 GB memory per app) and App Pro (4 GB per app).

orders-api.yourdomain.com
Java appsorders-api.yourdomain.com

Java · Maven/Gradle · Auto SSL

GitBuildReview
RuntimeJava · Maven / Gradle
DomainConnect after review
JV
IncludedTry our Java starter first: it shows every field the deploy form needs.

In practice

Java is a runtime, not a separate product.

Java apps run on App Hosting next to Node.js, Python and Laravel apps, with the same deploy form, deploy hook, custom domains and logs. What changes is the plan: a JVM needs memory, so Java starts at App Business.

Spring Boot API

A REST API with an Actuator health path, deployed on every git push.

Back-office app

An internal tool on its own subdomain, with environment variables kept between deploys.

An app with a database

Add Managed PostgreSQL and connect with a JDBC URL read from your environment.

CI-driven deploys

Call the deploy hook from your pipeline. It can wait and return the build log, so the job fails when the build does.

Why CM Cloud

Built to do more.

Built from your repository

We build with your ./mvnw or ./gradlew wrapper if you commit one, otherwise with the server's Maven or Gradle, and run the one runnable jar the build produces. The build runs as your app's own user in a sandbox, never as root.

Memory that is yours

Each app has a hard memory cap: 2 GB on App Business, 4 GB on App Pro. The JVM starts with -XX:MaxRAMPercentage=70 against that cap, so a bigger plan gives the heap more room on the next deploy.

Deploys that do not take you offline

A new release starts next to the old one, and traffic moves only once it answers on your health path. If it never does, the deploy is rolled back and the previous version keeps serving.

A database when you need one

Add Managed PostgreSQL from your app's page and connect over JDBC. No database is created for you automatically.

Who it's for

Java apps is the right fit if you need:

✓Spring Boot, Quarkus and Micronaut services built with Maven or Gradle
✓Teams who want git-push deploys without running a server
✓APIs and back-office apps that fit in 2 GB or 4 GB of memory
✓Developers who already build a fat jar and want it on a domain with HTTPS

How it works

Up and running in three steps.

1Buy App Business or App Pro — App Starter does not run Java
2Set Runtime to java and paste your repository URL and branch
3Set your health path, such as /actuator/health, and your environment variables
4Push to deploy; traffic moves once the new release answers

Included, not an add-on

Protected against attacks from the first day

Automated attacks sweep the web constantly, looking for any site running common software. Yours is watched for them around the clock — and every part of this is in your plan already, at no additional cost.

✓Password-guessing and abusive automated traffic are detected and blocked before they reach your site.
✓An attacker stopped at one site is blocked across every site we host, at our firewall and at Cloudflare's global edge.
✓Hosting, WordPress, app and mailbox data is copied every day to encrypted off-site storage. Certificates are free, and each shared-hosting account is isolated from its neighbours. A VPS is yours to back up.

Complete your setup

Works best alongside Java apps.