java-spring-enterprise

Design Spring Boot applications with Clean and Hexagonal Architecture.

5|Updated Apr 4, 2026
One-click install
npx skills add https://github.com/iamBrzDev/enterprise-agent-skills --skill java-spring-enterprise
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: java-spring-enterprise
Source: https://github.com/iamBrzDev/enterprise-agent-skills/tree/main/skills/java-spring-enterprise
Command: npx skills add https://github.com/iamBrzDev/enterprise-agent-skills --skill java-spring-enterprise

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Enterprises building backend systems often struggle to structure Spring Boot applications for maintainability, testability, and production reliability across transactions, database pooling, and observability concerns. This Skill provides clear architecture patterns, transaction guidance, connection pool tuning, and observability best practices to avoid common anti-patterns like fat controllers, leaking domain entities, incorrect transactional scopes, and misconfigured connection pools.

Core Features & Use Cases

  • Architecture Guidance: Clean / Hexagonal project layout with domain, application, and adapter separation to enforce framework-agnostic domain logic.
  • Transactional Best Practices: Rules for @Transactional usage including readOnly reads, explicit isolation on financial operations, and avoiding class-level transactional blast radii.
  • Performance & Infrastructure: HikariCP tuning recommendations, Virtual Threads guidance for I/O-bound workloads, and Micrometer/OpenTelemetry observability setup.
  • Use Case: Scaffold a new orders service that maps controllers to use cases, keeps domain free of Spring, configures HikariCP pool size, and records custom Micrometer metrics and traces.

Quick Start

Scaffold a new Spring Boot project using hexagonal layers, configure HikariCP pool-sizing, enable Micrometer and OpenTelemetry, and implement a CreateOrder use case where controllers delegate to application use cases and the domain remains framework-agnostic.

Frequently Asked Questions about java-spring-enterprise

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure a Spring Boot application using hexagonal architecture?

Structure a Spring Boot application using hexagonal architecture by separating domain, application, and adapter layers. This ensures framework-agnostic domain logic, controllers delegate to use cases, and the domain layer has no Spring dependencies.

What are the best practices for @Transactional usage in Spring Boot?

Best practices for @Transactional usage include applying readOnly for reads, setting explicit isolation on financial operations, and avoiding class-level transactional scopes to prevent blast radii.

How do I tune HikariCP connection pool sizing in Spring Boot?

Tune HikariCP connection pool sizing in Spring Boot by configuring explicit pool size parameters. This prevents misconfigured connection pools and ensures reliable database transaction handling under load.

Can I use virtual threads in Spring Boot for I/O-bound workloads?

Yes, you can use virtual threads in Spring Boot for I/O-bound workloads. Adopting virtual threads improves concurrency performance for heavy I/O operations without changing traditional application logic.

How do I enable Micrometer and OpenTelemetry observability in Spring Boot?

Enable Micrometer and OpenTelemetry observability in Spring Boot by configuring metrics and traces within your application. This ensures production reliability through constant visibility into system performance.