Skip to main content
prompt GP ChatGPT

Spring Boot Service taste — ChatGPT prompt: what it does

ChatGPT prompt Spring Boot Service taste defines architecture standards for Java backend engineering.

CC0-1.0 ★ 178,201 updated 2026-10-24

Open on GitHub

What Spring Boot Service taste does

This prompt establishes architectural guidelines for Java backend engineering using current Spring Boot and LTS Java releases with virtual threads. It structures packages by feature domains, mandates constructor injection with final fields, and binds configuration to typed @ConfigurationProperties records. Sensitive secrets are kept out of configuration files, incoming requests undergo Bean Validation, and errors return ProblemDetail payloads.

Exceptions are centralized inside @RestControllerAdvice classes, while schema migrations run through Flyway or Liquibase. Integration tests execute against real databases inside Testcontainers, and container images build via Buildpacks or layered JARs running under non-root users.

What it helps with

  • organize packages by business features
  • bind configuration to typed records
  • handle request validation via annotations
  • manage database schemas with Flyway or Liquibase
  • run integration tests with Testcontainers

Example prompts for the agent

  • Apply the Spring Boot Service taste prompt to structure this Java project
  • Review the backend architecture using Spring Boot Service taste standards
  • Apply Spring Boot Service taste rules to this service configuration

How to install Spring Boot Service taste

How to use

Paste the text at the start of a chat or into project instructions

Questions about Spring Boot Service taste

How to install Spring Boot Service taste in Claude Code?

Install the prompt by placing .claude/commands/prompts.csv.md into the project.

What does Spring Boot Service taste do?

The prompt defines architectural rules and backend engineering standards for Spring Boot and Java.

What tools and libraries are mentioned in the requirements?

The stack includes Spring Boot, Java, Flyway, Liquibase, Testcontainers, and Micrometer.

Source text

prompts.csv · CC0-1.0
# Spring Boot Service taste of a pragmatic Java backend engineer
- Start on the latest Spring Boot release with a current Java LTS version, and enable virtual threads where blocking I/O dominates. Confidence: 0.80
- Organize packages by feature such as orders or billing rather than by layer like controllers, services and repositories. Confidence: 0.85
- Use constructor injection with final fields everywhere and never field injection with @Autowired. Confidence: 0.95
- Bind configuration to typed, validated @ConfigurationProperties records instead of scattered @Value strings. Confidence: 0.90
- Keep secrets out of application.yml and read them from environment variables or a secrets manager. Confidence: 0.95
- Use Java records for request and response DTOs and keep JPA entities out of controller signatures. Confidence: 0.90
- Validate requests with Bean Validation annotations and @Valid, and return ProblemDetail responses for every error. Confidence: 0.85
- Handle exceptions in one @RestControllerAdvice class instead of try/catch blocks in each controller. Confidence: 0.85
- Put @Transactional on service methods, keep transactions short, and never call remote services inside one. Confidence: 0.90
- Turn off open-in-view and fetch associations explicitly with fetch joins or entity graphs to avoid N+1 queries. Confidence: 0.90
- Manage schema changes with Flyway or Liquibase migrations and keep Hibernate ddl-auto set to validate or none. Confidence: 0.95
- Call other HTTP services through RestClient or declarative HTTP interfaces with explicit connect and read timeouts. Confidence: 0.85
- Wrap unreliable dependencies in retries with backoff and circuit breakers, and make retried operations idempotent. Confidence: 0.80
- Log in structured JSON with correlation IDs from tracing, and never log tokens, passwords or full request bodies. Confidence: 0.90
- Expose only health, info and metrics Actuator endpoints publicly, and secure or disable the rest. Confidence: 0.90
- Export metrics and traces with Micrometer and OpenTelemetry instead of custom timing code. Confidence: 0.80
- Secure endpoints with Spring Security as an OAuth2 resource server and method-level authorization for sensitive actions. Confidence: 0.85
- Write fast slice tests with @WebMvcTest and @DataJpaTest, and keep full @SpringBootTest runs for a few key flows. Confidence: 0.80
- Run integration tests against real databases and brokers in Testcontainers rather than H2 or embedded fakes. Confidence: 0.90
- Generate the OpenAPI spec from code with springdoc and publish it with every build. Confidence: 0.70
- Build container images with Buildpacks or layered jars and run them as a non-root user with memory limits set. Confidence: 0.80
- Keep dependency versions managed by the Spring Boot BOM and let a bot like Renovate open upgrade pull requests. Confidence: 0.80

© f · CC0-1.0 · f/prompts.chat

Similar prompts

All prompts for Backend and APIs →
spring-boot-test-patterns giuseppe-trisciuoglio spring-boot-test-patterns — a skill that gives your agent ready patterns for Spring Boot tests: Mockito unit tests, @DataJpaTest and @WebMvcTest slices, Testcontainers integration. CX Codex +1 4,500installs 322-frameworks-spring-boot-testing-integration-tests Juan Antonio Breña Moral 322-frameworks-spring-boot-testing-integration-tests is a Claude Code skill for writing and reviewing Spring Boot 4.0.x integration tests with Testcontainers, persistence slices, and HTTP assertions. CX Codex +1 388installs 323-frameworks-spring-boot-testing-acceptance-tests Juan Antonio Breña Moral 323-frameworks-spring-boot-testing-acceptance-tests is a Claude Code skill that turns maintainer-sanitized Gherkin scenarios into Spring Boot acceptance tests with TestRestTemplate, Testcontainers and WireMock. CX Codex +1 345installs spring-boot-testing official github This skill chooses a Spring Boot testing approach, from JUnit and test slices to Testcontainers integration. It accounts for differences between Spring Boot 3 and 4. CX Codex +1 2,000installs aws-rds-spring-boot-integration giuseppe-trisciuoglio aws-rds-spring-boot-integration is a Claude Code skill for wiring Spring Boot applications to AWS RDS. It covers Aurora, MySQL and PostgreSQL setups. CX Codex +1 3,900installs spring-boot Mindrally Gives your agent Spring Boot conventions: REST controllers, JUnit tests, security, build and deploy. Useful when the project is Java. CX Codex +1 881installs

From the same set218

The whole set →
Nix Dev Environment taste Nix Dev Environment taste — a prompt for ChatGPT configures reproducible Nix development environments with locked dependencies and container builds. GP ChatGPT ★ 178,201repo stars Astro Content Site taste The Astro Content Site taste ChatGPT prompt sets out development rules for content sites built with Astro. It covers rendering, images, SEO, and CI checks. GP ChatGPT ★ 178,201repo stars Phoenix App taste Phoenix App taste — a prompt for ChatGPT, Claude.ai, and Claude Code that enforces engineering standards for Elixir and Phoenix applications. It defines architectural patterns, database operations, and testing strategies. GP ChatGPT ★ 178,201repo stars gRPC Service taste The gRPC Service taste prompt for ChatGPT sets design guidelines for gRPC services. It covers .proto schemas, RPC methods, errors, and calls between services. GP ChatGPT ★ 178,201repo stars Full-Text Search taste Full-Text Search taste — a prompt for ChatGPT that sets out principles for building full-text search. It covers indexing, ranking, access control, and result delivery. GP ChatGPT ★ 178,201repo stars .NET Web API taste .NET Web API taste — a prompt for ChatGPT defines .NET Web API standards for a pragmatic C# engineer. Runs during backend design and code generation. GP ChatGPT ★ 178,201repo stars Laravel App taste The Laravel App taste ChatGPT prompt sets practical conventions for building Laravel and PHP apps. It guides work on controllers, validation, queues, tests, and deployment. GP ChatGPT ★ 178,201repo stars Flutter App taste Flutter App taste — a prompt for ChatGPT that defines architectural standards for cross-platform mobile apps on Flutter. Used when structuring codebases and setting up projects. GP ChatGPT ★ 178,201repo stars

Project sponsors

Companies that keep this analytics open