# Getting Started

Source: https://guicedee.com/getting-started

# Hello World with GuicedEE

Get a reactive REST endpoint running in under 5 minutes. The quickest way is to use the IntelliJ plugin — or follow the manual steps below. Either way: one endpoint, zero XML, zero configuration files. Just Java.

5 minutes

Zero XML

Hello World

Quickest Start

## IntelliJ Plugin

30 seconds to a running project — zero manual setup.

The fastest way to get a GuicedEE project running is to install the  Guiced  IntelliJ IDEA plugin. It creates a fully configured project —  pom.xml ,  module-info.java , bootstrap class, and REST endpoint — in a single wizard. No manual setup required.

### 1. Install the plugin

Open  Settings → Plugins → Marketplace  and search for  Guiced , or install directly from the  JetBrains Marketplace .

### 2. New Project → GuicedEE

Use File → New Project and select the GuicedEE template. Pick your modules (REST, Persistence, WebSockets, etc.) and the wizard generates everything.

### 3. Run

Click the green play button next to your Boot class. Your REST endpoints are live at localhost:8080.

30 seconds

Zero manual setup

IntelliJ 2025+

Prerequisites

## What you need

GuicedEE targets the latest Java and tooling.

### JDK 25+

Download from adoptium.net or use SDKMAN.

Required

### Maven 3.9+ / 4+

Any modern Maven version works. GuicedEE itself is built with Maven 4.

Required

Use Gradle

### Your IDE

IntelliJ IDEA, VS Code, or Eclipse — all work.

Recommended

### JDK 25+

Download from adoptium.net or use SDKMAN.

Required

### Gradle 8.6+

Any modern Gradle version with JPMS support.

Required

Use Maven

### Your IDE

IntelliJ IDEA, VS Code, or Eclipse — all work.

Recommended

Step 1

## Create the project

One BOM, one dependency. That's the entire pom.xml.

Create a new Maven project with the GuicedEE BOM and two dependencies: the core injection engine and the REST module. That's all you need for Hello World.

```xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
         http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.example</groupId>
    <artifactId>hello-guicedee</artifactId>
    <version>1.0.0-SNAPSHOT</version>

    <properties>
        <maven.compiler.release>25</maven.compiler.release>
        <guicedee.version>2.6.0</guicedee.version>
    </properties>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.guicedee</groupId>
                <artifactId>guicedee-bom</artifactId>
                <version>${guicedee.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <dependencies>
        <dependency>
            <groupId>com.guicedee</groupId>
            <artifactId>rest</artifactId>
        </dependency>
    </dependencies>
</project>
```

```groovy
// build.gradle.kts
plugins {
    java
}

group = "com.example"
version = "1.0.0-SNAPSHOT"

repositories {
    mavenCentral()
}

java {
    toolchain {
        languageVersion.set(JavaLanguageVersion.of(25))
    }
}

dependencies {
    implementation(platform("com.guicedee:guicedee-bom:2.6.0"))
    implementation("com.guicedee:rest")
}

tasks.jar {
    archiveFileName.set("hello-guicedee-1.0.0-SNAPSHOT.jar")
}

tasks.register<Copy>("copyRuntimeDependencies") {
    from(configurations.runtimeClasspath)
    into(layout.buildDirectory.dir("runtime-libs"))
}
```

The rest module transitively brings in inject ( Guice  +  ClassGraph ) and web ( Vert.x  HTTP server). The BOM aligns all versions. You only declare what you directly use.

Step 2

## Create the module descriptor

Three lines. Explicit, safe, and JLink-ready.

GuicedEE uses the Java Platform Module System. Create a  module-info.java  that opens your package for injection.

```java
module hello.guicedee {
    requires transitive com.guicedee.rest;
    requires com.guicedee.guicedinjection;
    opens com.example.hello to com.google.guice, com.guicedee.rest;
}
```

The module descriptor reads the REST and injection modules.  opens  lets  Guice  inject your classes and the REST module invoke your endpoint methods.

Step 3

## Write the bootstrap

Two lines. Everything else is automatic.

```java
package com.example.hello;

import com.guicedee.client.IGuiceContext;
import com.guicedee.guicedinjection.GuiceApplication;

public class Boot {
    public static void main(String[] args) {
        GuiceApplication.run(() -> {
            IGuiceContext.registerModule("hello.guicedee");
        });
    }
}
```

Call  GuiceApplication.run(Runnable)  and register the module name from  module-info.java  in its preparation callback. GuicedEE discovers your classes, creates the  Guice  injector, starts the  Vert.x  HTTP server, and registers your REST routes — all automatically. The call returns after asynchronous startup completes. Failed startup triggers cleanup and exits the process unsuccessfully. Use this runner in your application's main entry point.

Step 4

## Write a REST endpoint

Standard @Path, @GET — nothing proprietary.

```java
package com.example.hello;

import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.PathParam;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType;

@Path("/hello")
public class HelloResource {

    @GET
    @Produces(MediaType.TEXT_PLAIN)
    public String hello() {
        return "Hello, GuicedEE!";
    }

    @GET
    @Path("/{name}")
    @Produces(MediaType.TEXT_PLAIN)
    public String greet(@PathParam("name") String name) {
        return "Hello, " + name + "!";
    }
}
```

Standard Jakarta REST annotations.  ClassGraph  finds this class at startup, the REST module maps it to  Vert.x  routes, and it's live. No registration code.

Step 5

## Run it

Build, run, test. Your Hello World is live.

```xml
mvn clean package dependency:copy-dependencies -DincludeScope=runtime -DoutputDirectory=target/dependency
java --module-path "target/hello-guicedee-1.0.0-SNAPSHOT.jar:target/dependency" \
     --module hello.guicedee/com.example.hello.Boot
```

```groovy
gradle clean build copyRuntimeDependencies
java --module-path "build/libs/hello-guicedee-1.0.0-SNAPSHOT.jar:build/runtime-libs" \
     --module hello.guicedee/com.example.hello.Boot
```

The module path includes the application JAR and its runtime dependencies. On Windows, replace the colon between the two paths with a semicolon; run the command on one line in PowerShell.

```java
curl http://localhost:8080/hello
# => Hello, GuicedEE!

curl http://localhost:8080/hello/World
# => Hello, World!
```

That's it. A reactive REST service running on  Vert.x 5 , with  Guice  DI, JPMS modules, and zero configuration files. The entire project is 4 files:  pom.xml ,  module-info.java ,  Boot.java ,  HelloResource.java .

What just happened?

## Zero-magic bootstrapping

Everything is discovered through ClassGraph scanning and SPI — no reflection hacks.

When you called  GuiceApplication.run(Runnable) , GuicedEE executed this lifecycle:

GuicedEE Bootstrap Lifecycle

```mermaid
%%{init: {'theme': 'dark'}}%%
graph LR
    subgraph Discovery
        A["🚀 Start"] --> B["🔍 Scan"]
        B --> C["📦 Found @Path"]
        B --> D["⚙️ Load SPI"]
    end
    subgraph Wiring
        C --> E["💉 Injector"]
        D --> E
    end
    subgraph Serving
        E --> F["🌐 Vert.x"]
        F --> G["🔗 Routes"]
        G --> H["✅ Ready"]
    end

    style Discovery fill:#29202a,stroke:#a94f78,color:#f5edf2
    style Wiring fill:#202434,stroke:#777bc1,color:#f1f1f8
    style Serving fill:#192b27,stroke:#459e85,color:#eaf7f2
```

```mermaid
graph LR
    subgraph Discovery
        A["🚀 Start"] --> B["🔍 Scan"]
        B --> C["📦 Found @Path"]
        B --> D["⚙️ Load SPI"]
    end
    subgraph Wiring
        C --> E["💉 Injector"]
        D --> E
    end
    subgraph Serving
        E --> F["🌐 Vert.x"]
        F --> G["🔗 Routes"]
        G --> H["✅ Ready"]
    end

    style Discovery fill:#29202a,stroke:#a94f78,color:#f5edf2
    style Wiring fill:#202434,stroke:#777bc1,color:#f1f1f8
    style Serving fill:#192b27,stroke:#459e85,color:#eaf7f2
```

### No Application class

No framework-specific base class to extend. Just a  main()  method.

### No registration code

Routes are discovered from  @Path  annotations. No manual route wiring.

### No XML / YAML

No  web.xml , no  application.yml , no  beans.xml . Configuration is code + env vars.

What's next?

## Go deeper

Hello World was just the beginning. Each module has its own dedicated guide.

Now that you have a running Hello World, explore what GuicedEE can really do.

### End-to-end guide

Build a real-world microservice with security, persistence, REST clients, CORS, cloud logging, and JLink deployment.

/guides/end-to-end

### REST services

Full JAX-RS adapter — CORS, security, reactive returns, exception mapping, and  RestInterceptor  SPI.

/guides/end-to-end#rest-endpoints

### REST client

@Endpoint  annotation, typed  RestClient<S,R> , path parameters, Bearer/Basic/ApiKey auth, env-var secrets.

/guides/end-to-end#rest-client

### Persistence

Hibernate Reactive 4.5 and ORM 7.4  with  Mutiny . Multi-database, env-var driven, fully managed by  Guice .

/guides/end-to-end#persistence

### Security

@RolesAllowed ,  @PermitAll , pluggable  Vert.x  auth handlers, HTTPS/TLS, call-scoped isolation.

/guides/end-to-end#security

### Cloud & deployment

CLOUD=true  for JSON logging, JLink custom runtimes, distroless Docker, ~300 ms cold start.

/guides/end-to-end#jlink-deployment

### Verticles & SPI

@Verticle  isolation, 3 server SPI hooks, per-pool threading,  VertxRouterConfigurator .

/guides/end-to-end#verticle-isolation

### All modules

Health, Metrics, Telemetry, Config, WebSockets, RabbitMQ, Kafka, IBM MQ, OpenAPI, Swagger UI, Fault Tolerance, and more.

/modules

End-to-end guide

Explore capabilities

Open the app builder

Browse All Examples

