---
title: "How to Deploy a Spring App | Hostman Docs"
description: "Deploy Spring apps with Hostman. Discover deployment steps, optimization tips, and hosting configurations and many more!"
---

> For the complete documentation index for AI agents, see [llms.txt](https://hostman.com/llms.txt).

You can find the step-by-step deployment guide [here](https://hostman.com/docs/app-platform/backend-apps/).

Hostman uses the following environment when building a Spring application:

-   OpenJDK 8, 11, 17, 18, or 19
-   Maven

Hostman will execute the following commands during the build:

```shell
apt install -y openjdk-{{env_version}}-jre-headless maven
```

The default start command is:

```shell
mvn spring-boot:run
```

Make sure that:

-   Your project has the `pom.xml` file.
-   The `spring-boot-starter` dependency is correctly defined in `pom.xml`.
