Index of every page on this site: llms.txt
All skills
github avatar

/create-spring-boot-java-project

@f10fdb8 official
by githubgithub/awesome-copilot41k stars
5,399
Run it yourself

Create a new Spring Boot Java project (Maven or Gradle) from start.spring.io with sensible defaults for configuration, PostgreSQL, logging, security, testing and Docker. Use when asked to scaffold, bootstrap or generate a Spring Boot application. Detects existing project versions and never upgrades implicitly.

Use this Skill: https://skilld.dev/gh/github/awesome-copilot/create-spring-boot-java-project

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesversions.md

≈674 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Version handling

Rules

  1. Existing project: read versions from pom.xml / build.gradle(.kts) (Spring Boot parent or plugin version, java.version/toolchain, spring-boot-starter-test). Keep them. Never bump implicitly.
  2. New project: resolve at run time, fall back to the table below only when offline.
  3. Never use latest, LATEST or RELEASE as a version, nor piped shell installers.

Resolve the latest stable Spring Boot

curl -fsS -H 'Accept: application/json' https://start.spring.io/metadata/client \
  | python3 -c "import json,sys; d=json.load(sys.stdin); print(d['bootVersion']['default'], d['javaVersion']['default'])"
  • bootVersion.default is the current stable release (it may carry a .RELEASE suffix such as 4.1.1.RELEASE; strip it: pass 4.1.1).
  • Skip ids containing SNAPSHOT, M or RC (milestones/snapshots) unless the user asks for them.
  • javaVersion.default is only the start.spring.io default. Pick the highest LTS the installed JDK supports (java -version), and make sure it is offered in javaVersion.values.
  • Use the major line the user asks for. If they do not say, use the latest stable; see spring-boot-4.md for what changes between 3.x and 4.x.
  • start.spring.io only generates Boot 4.0+ (verified: bootVersion=3.5.x returns HTTP 400 "compatibility range is >=4.0.0"). For a Boot 3.5 project, generate nothing: hand-write the build file with spring-boot-starter-parent 3.5.x (latest 3.5 on Maven Central, e.g. 3.5.16), spring-boot-starter-web, and spring-boot-starter-test, plus the Maven/Gradle wrapper. Creating the wrapper (mvn wrapper:wrapper / gradle wrapper) requires Maven or Gradle to be installed locally; if neither is available, ask the user to install one or choose Boot 4.
  • Verify the choice exists on Maven Central: curl -fsSI https://repo1.maven.org/maven2/org/springframework/boot/spring-boot/BOOT_VERSION/spring-boot-BOOT_VERSION.pom.

Fallback values (offline, reviewed 2026-10)

Item Value
Spring Boot 4.1.1
Java 25 (LTS)
PostgreSQL image postgres:18-alpine
Testcontainers managed by the Spring Boot BOM; do not pin unless overriding
JDK image eclipse-temurin:25-jdk-noble
GraalVM image ghcr.io/graalvm/graalvm-community:25

These values age: when start.spring.io is reachable, prefer its answer, and tell the user which source was used.

Dependencies managed by the BOM

Do not specify versions for Spring-managed dependencies (Hibernate, Jackson, Testcontainers, PostgreSQL driver, JUnit). Pin only what the BOM does not manage (for example a Maven plugin or a Docker image tag).

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning1d5 checks · Risk SAFE
  • Gen Agent Trust Hub15d

    This skill scaffolds a Spring Boot project using official and well-known industry services with strong security best practices, including non-root Docker images and secure secret management instructions.

  • Socket1d

    No alerts

  • Snyk15d

    Risk: LOW · No issues

  • Runlayer8mo

    1/1 file flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at f10fdb8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last month
  • spring-boot
  • java
  • maven
  • postgres
  • redis
  • mongodb
  • docker
  • scaffold

README badge

README badge for github/awesome-copilot/create-spring-boot-java-project

Scaffolds a Spring Boot 3.4.5 Maven project with Java 21, preconfigured with PostgreSQL, Redis, MongoDB, and Docker Compose services. Includes SpringDoc OpenAPI for API documentation and ArchUnit for architecture testing, with default credentials and port mappings ready to use.

Generated from the current SKILL.md.

What Java version does this skill require?
Java 21. The skill generates a Spring Boot 3.4.5 project configured for Java 21.
Can I customize the project name and Spring Boot version?
Yes. You can modify the `artifactId`, `packageName`, and `bootVersion` parameters in the download command before running it.
What databases and services are included?
The skill sets up PostgreSQL, Redis, and MongoDB via docker-compose, along with SpringDoc OpenAPI for API documentation and ArchUnit for architecture testing.
Do I need Docker installed?
Yes. The skill requires both Docker and Docker Compose to run the included database services (Redis, PostgreSQL, MongoDB).

Generated from the current SKILL.md. These answers refresh after source changes.