Skip to content
Development
Command

/run

Start the Spring Boot application locally — checks prerequisites, then runs the app and reports startup status

From plugin
claude-java-plugins
175 skills6 agents5 commands
Install
$ npx -y skills add ducpm2303/claude-java-plugins --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/run

Context preview

What this command does when you run it.

Start the Spring Boot application locally — checks prerequisites, then runs the app and reports startup status

Command definition

run.md
description: Start the Spring Boot application locally — checks prerequisites, then runs the app and reports startup status

/java-spring:run

Start the Spring Boot application in the current directory.

Instructions

1. **Pre-flight checks**:

  • Detect build tool (`pom.xml` → Maven, `build.gradle` → Gradle)
  • Check `application.yml` / `application.properties` for required env vars (`${...}` placeholders with no default)
  • Warn about any unset required variables before starting

2. **Start the application**:

  • Maven: `mvn spring-boot:run`
  • Gradle: `./gradlew bootRun`

3. **Watch startup output** for:

  • `Started <AppName> in X seconds` → report success with port
  • `APPLICATION FAILED TO START` → extract the root cause (e.g., missing bean, port conflict, datasource error) and explain in plain English
  • Port conflict (`Address already in use: 8080`) → suggest `mvn spring-boot:run -Dspring-boot.run.arguments=--server.port=8081`

4. **On datasource errors**:

  • Missing database → suggest `docker run -p 5432:5432 -e POSTGRES_PASSWORD=postgres postgres:16-alpine`
  • Connection refused → check if DB container is running

5. After successful start, remind: Ctrl+C to stop; use `spring.profiles.active=dev` for dev profile.

Ships withclaude-java-plugins

A Claude Code plugin marketplace with 3 focused plugins for Java developers. All plugins support Java 8 through Java 21 and tailor advice to your target Java version.

Get the whole plugin, auto-invoked
Stats
17
Stars
0
Views
0
Forks
Maintained
Maintenance
Shell
Language
4mo ago
Last commit
4mo ago
Created

Repo: ducpm2303/claude-java-plugins