---
title: "Connect Java (Spring Boot)"
description: "Install Xovris in a Java (Spring Boot) project with one command, verify the first event and remove it cleanly."
url: https://xovris.ai/docs/connect/java/
---

# Connect Java (Spring Boot)

Install Xovris in a Java (Spring Boot) project with one command, verify the first event and remove it cleanly.

Support: Connects today - The wizard adds OpenTelemetry's Spring Boot starter and its version list (BOM) to your pom.xml or build.gradle and writes the OpenTelemetry variables to .env; Java (Spring Boot) is released once its install test passes in CI.

## Run the wizard

Xovris makes this change for you: connect GitHub once and Xovris raises a pull request that lists every change, for you to review and merge. Do it yourself instead: run the command above in the folder that holds your project’s package.json – it opens your browser once to sign you in, and you never copy a key.

maven:

```sh
npx xovris@latest init
```

gradle:

```sh
npx xovris@latest init
```

## Variables it writes

The wizard writes these to .env and adds that file to .gitignore if it is not already ignored. It refuses to write a key into a file git tracks.

- `OTEL_EXPORTER_OTLP_ENDPOINT`
- `OTEL_EXPORTER_OTLP_HEADERS`

## Check it works

The wizard ends by waiting for your first stored event. To check again later, run:

```sh
npx xovris@latest verify
```

## Remove it

This reverses every change the wizard recorded and revokes the key, then confirms both are gone:

```sh
npx xovris@latest remove
```

## Packages

```sh
io.opentelemetry.instrumentation:opentelemetry-spring-boot-starter with io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom:2.32.0 in pom.xml
```

## What you get

- Server errors: Through OpenTelemetry
- Browser errors: Not collected
- Traces: Through OpenTelemetry
- Metrics: Through OpenTelemetry
- Logs: Through OpenTelemetry
- Releases: Not collected
- Readable stack traces: Not collected

## Supported versions

Written for Java (JVM) 17 or later.

## If you already use another tool

The wizard looks for existing instrumentation first and tells you what it will do before it changes anything, so you never send each error twice.

- OpenTelemetry: Adds Xovris as a second OpenTelemetry exporter – your existing setup keeps working unchanged.
- Sentry: Offers to run both side by side for a while, or to switch over; it never sends one error to Xovris twice.
- Datadog: Leaves the existing agent in place and offers to export through OpenTelemetry instead of adding a second agent.
- New Relic: Leaves the existing agent in place and offers to export through OpenTelemetry instead of adding a second agent.
