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

/spring-boot

@d3e2684
Run it yourself

Spring Boot CLI for project initialization and Actuator endpoints for monitoring and management.

  • 1 file
  • 3.1 KB
  • Updated 10 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/jyasuu/cheat-sheet/spring-boot

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

SKILL.md

≈27 tokens for metadata: the name and description. ≈749 when used: this file.

Description uses 1.4% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈110 characters, or 1.4%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Spring Boot

Project Initialization

Setup with SDKMAN

curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk install java 17.0.10-zulu
sdk install springboot

Create New Project

spring init my-app --build=maven --java-version=17 --group-id org.jyasu \
--boot-version=3.2.2 --packaging jar --extract --force \
--dependencies=web,lombok,docker-compose

Common Dependencies

web                    # Web (Spring MVC + Embedded Tomcat)
lombok                # Boilerplate reduction
docker-compose        # Docker Compose support
spring-ai-openai      # OpenAI integration
spring-ai-vectordb-elasticsearch  # Elasticsearch vector store
spring-ai-vectordb-redis          # Redis vector store
spring-ai-vectordb-mongodb-atlas  # MongoDB vector store
postgresql            # PostgreSQL JDBC driver
data-jpa              # Spring Data JPA
actuator              # Production monitoring
distributed-tracing   # Tracing support
data-cassandra        # Cassandra support
data-mongodb          # MongoDB support
graphql               # GraphQL support
data-elasticsearch    # Elasticsearch support
data-redis            # Redis support
kafka                 # Kafka messaging
amqp                  # RabbitMQ support
cloud-starter-vault-config  # Vault configuration
native                # Native image support
spring-shell          # Spring Shell

Spring Boot Actuator Endpoints

🔗 Official Documentation

Endpoint Description
/actuator/health Application health status (UP/DOWN) with optional details
/actuator/info Arbitrary application info from application.properties
/actuator/metrics JVM memory, CPU, HTTP requests, and custom metrics
/actuator/env Complete environment properties and configuration
/actuator/beans All Spring beans in the application context
/actuator/mappings All @RequestMapping paths and handlers
/actuator/threaddump Thread dump with stack traces
/actuator/loggers Runtime log level viewing and modification
/actuator/httptrace HTTP request/response trace (last 100 by default)
/actuator/auditevents Audit events for security and changes
/actuator/scheduledtasks Scheduled task information
/actuator/heapdump JVM heap dump download (if enabled)
/actuator/shutdown Graceful application shutdown (must be explicitly enabled)

Enable/Configure Endpoints

# application.properties
management.endpoints.web.exposure.include=health,info,metrics
management.endpoint.health.show-details=always
management.endpoint.shutdown.enabled=true

Health Indicators

# Check health
curl http://localhost:8080/actuator/health

# Health with details
curl http://localhost:8080/actuator/health/details

# View all endpoints
curl http://localhost:8080/actuator

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.

No third-party reports yet.

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

Last checked against GitHub last month.

Steadyupdated 10 months ago

README badge

README badge for jyasuu/cheat-sheet/spring-boot