spring-boot-engineer

Generates Spring Boot 3.x controllers, services, security, and JPA data layers.

Updated Jun 28, 2026
One-click install
npx skills add https://github.com/412181-HerediaLara/ScaffoldingBE-FE --skill spring-boot-engineer-412181-heredialara
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spring-boot-engineer
Source: https://github.com/412181-HerediaLara/ScaffoldingBE-FE/tree/main/BE/.agents/skills/spring-boot-engineer
Command: npx skills add https://github.com/412181-HerediaLara/ScaffoldingBE-FE --skill spring-boot-engineer-412181-heredialara

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Building Spring Boot 3.x backends requires coordinating many layers—REST controllers, services, JPA repositories, Spring Security 6, and testing—while avoiding deprecated patterns and common mistakes like field injection or missing validation. This Skill provides structured guidance and copy-paste code patterns for each layer. ## Core Features & Use Cases - Layered Code Generation: Produces entities, repositories, services with constructor injection, REST controllers with DTO validation, and global exception handlers following Spring Boot 3.x conventions. - Security & Cloud Integration: Implements Spring Security 6 JWT authentication, OAuth2 resource servers, method security, plus Spring Cloud Config, Eureka, Gateway, and Resilience4j circuit breakers. - Testing Support: Generates unit tests, MockMvc slice tests, @DataJpaTest repository tests, and Testcontainers-based integration tests. - Use Case: When building a Java REST API with authentication and PostgreSQL persistence, invoke this Skill to scaffold the full vertical slice—entity, repository, service, secured controller, and tests—following current best practices. ## Quick Start Ask the AI to create a Spring Boot REST endpoint for managing products with JPA persistence, input validation, and JWT-based security.

Frequently Asked Questions about spring-boot-engineer

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

FAQPage Schema
How do I create a REST controller in Spring Boot 3?

Annotate a class with @RestController and @RequestMapping, inject the service via constructor, and use @GetMapping or @PostMapping methods with @Valid @RequestBody DTOs. Return ResponseEntity or use @ResponseStatus for status codes like 201 Created.

How to implement JWT authentication with Spring Security 6?

Define a SecurityFilterChain bean with stateless sessions, add a OncePerRequestFilter that parses the Bearer token, and build tokens with Jwts.builder using an HMAC secret key. Register the filter before UsernamePasswordAuthenticationFilter and enable @EnableMethodSecurity for @PreAuthorize checks.

Does Spring Boot 3 still support WebSecurityConfigurerAdapter?

No, WebSecurityConfigurerAdapter was removed in Spring Security 6. Configure security by declaring a SecurityFilterChain bean with lambda-style HttpSecurity configuration instead of extending the adapter class.

How do I test Spring Data JPA repositories?

Use @DataJpaTest with TestEntityManager to persist entities and verify repository queries against an in-memory or Testcontainers database. For realistic integration tests, combine @SpringBootTest with a PostgreSQL Testcontainers container and @DynamicPropertySource.

Why should I avoid field injection with @Autowired in Spring?

Field injection hides dependencies, prevents final fields, and complicates unit testing. Constructor injection makes dependencies explicit, supports immutability, and allows easy mocking with Mockito in tests.

Can I mix blocking and reactive code in Spring WebFlux?

No, calling .block() inside a WebFlux chain defeats the reactive model and can cause thread starvation. Keep the stack consistently reactive with Mono and Flux, or use Spring MVC for blocking workloads.