spring-boot-fallback
FeaturedUse when Java is chosen but Quarkus does not fit - build the service with Spring Boot using the same clean layering, only when a required library lacks a Quarkus extension or the repo already standardizes on Spring
AI & Automation 91 stars
13 forks Updated today Apache-2.0
Install
Quality Score: 89/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Spring Boot Fallback
## Overview
Quarkus is the default (see quarkus-service-architecture). Spring Boot is the fallback — reach for it only when Quarkus genuinely does not fit. The architecture is the same clean layering; only the annotations and container differ.
**Core principle:** Same layered design as Quarkus. Spring is a container choice, not a license to sprawl.
## When Spring Boot instead of Quarkus
- The repository already uses Spring Boot — follow it.
- A required library/integration has no Quarkus extension and no clean CDI alternative.
- The deployment target or team standard mandates Spring.
If none of these hold, use Quarkus.
## Layer mapping (same responsibilities, Spring surface)
| Layer | Quarkus | Spring Boot |
|-------|---------|-------------|
| Resource/Controller | JAX-RS `@Path` | `@RestController` `@RequestMapping` |
| Service | `@ApplicationScoped` | `@Service` |
| Repository | Panache | `JpaRepository` (Spring Data) |
| Validation | `@Valid` + Bean Validation | `@Valid` + Bean Validation |
| Config | `@ConfigProperty` | `@ConfigurationProperties` / `@Value` |
| Transaction | `@Transactional` (service) | `@Transactional` (service) |
## Patterns (identical discipline)
- **Constructor injection only** — Spring injects a single constructor automatically; no `@Autowired` on fields.
- **DTOs (records) at the controller edge**; never return JPA entities from a controller.
- **Bean Validation** on request DTOs, `@Valid` on the controller method.
-...
Details
- Author
- makifbaysal
- Repository
- makifbaysal/tasktrooper
- Created
- 1 weeks ago
- Last Updated
- today
- Language
- Go
- License
- Apache-2.0
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Featured
quarkus-service-architecture
Use when building or extending a Java service with Quarkus - layered architecture, JAX-RS resources, CDI beans, Panache persistence, and native-friendly patterns
91 Updated today
makifbaysal Testing & QA Listed
spring-boot
Use when building Spring Boot services. Covers dependency injection, transaction boundaries, JPA performance, configuration, validation, and testing slices.
28 Updated 1 months ago
nimadorostkar AI & Automation Listed
spring-boot--kotlin
Provides expert knowledge of Spring Boot conventions, Kotlin idioms, and MVC patterns for backend API development.
0 Updated today
lgzarturo