spring-boot-config

spring-boot-config is a cursor rule for Cursor from lsampaioweb/ai-instructions. It costs 0 tokens per session (735 once invoked), scanned A, original, MIT.

A set of rules for Spring Boot application configuration stored outside the program code. It organizes shared settings and environment-specific values, such as development and production settings.

In plain words
What is it for?
Use it when creating application.yml files, development or production profiles, database settings, server settings, logging, thread settings, or other runtime properties.
Why use it?
It prevents environment-specific details from being mixed together and makes deployments easier to review. It also defines where local overrides and service settings belong.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when creating application.yml files, development or production profiles, database settings, server settings, logging, thread settings, or other runtime properties.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/lsampaioweb/ai-instructions/spring-boot-config
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/lsampaioweb/ai-instructions

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for spring-boot-config

README.md
[![agentmods](https://agentmods.dev/badge/rules/lsampaioweb/ai-instructions/spring-boot-config/github.svg)](https://agentmods.dev/rules/lsampaioweb/ai-instructions/spring-boot-config)
Your own site
<a href="https://agentmods.dev/rules/lsampaioweb/ai-instructions/spring-boot-config"><img src="https://agentmods.dev/badge/rules/lsampaioweb/ai-instructions/spring-boot-config/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for spring-boot-config

Your own site · 80×15
<a href="https://agentmods.dev/rules/lsampaioweb/ai-instructions/spring-boot-config"><img src="https://agentmods.dev/badge/rules/lsampaioweb/ai-instructions/spring-boot-config.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 735 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00735
Opus 5.5 $0.00000 $0.00294
Sonnet 5.5 $0.00000 $0.00147
Haiku 4.5 $0.00000 $0.00073

Measured 1mo ago against content hash 93f10c083dbd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

spring-boot-config scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/spring-boot-config.mdc · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Spring Boot Configuration Contract

Configuration files

  • Prefer YAML configuration (application.yml) over .properties files.
  • Keep settings shared by every environment in application.yml.
  • Quote string configuration values consistently in YAML.
  • Never commit secrets, passwords, tokens, or private keys as plain values; load them from environment variables or an external secret source.

Virtual threads

  • Enablement of spring.threads.virtual.enabled is owned by the virtual-threads contract. Do not restate or override that flag here.

Profiles

  • Every application ships both profile files:

    • application-development.yml
    • application-production.yml
  • Use the full profile names development and production only. Never use short forms such as dev, prod, local, or prod-like.

  • Put environment-specific overrides only in the matching profile file (for example server port, stack-trace exposure, or Swagger enablement). Actuator health-detail overrides are owned by the Actuator contract.

  • An optional application-test.yml is allowed when automated tests need a dedicated profile; do not replace development or production with test.

  • Declare the active profile in application.yml using list form, with production as the committed default and development available as a commented alternative:

    spring:
      profiles:
        active:
          # - "development"
          - "production"
    
  • Prefer overriding the active profile at runtime with SPRING_PROFILES_ACTIVE, a command-line argument, or container/orchestration configuration when switching environments, rather than editing committed defaults casually.

  • Typical HTTP overrides when the application exposes a web port:

    • development: port 8080, server.error.include-stacktrace: "always"
    • production: port 9443, server.error.include-stacktrace: "never"
  • When OpenAPI/Swagger is present, enable it in development and disable it in production.

Read the full file on GitHub · 77 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +31 lines 93f10c083dbd
  2. 2mo ago First seen · 46 lines · 0 tokens per session scan A 403fc9c0a997

Subscribe to this mod's changes

spring-boot-config is a cursor rule published in the GitHub repository lsampaioweb/ai-instructions (1 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 735 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.