Every Spring Boot developer eventually writes the same code: a login endpoint, a JWT filter, some role checks, a way to run it all in Docker. I did it enough times that I turned it into a reusable template and open-sourced it. This is a walkthrough of what it includes and why.
The problem
Before you build anything interesting, a backend admin panel needs: authentication, authorization, a database, caching, deployment, and documentation. That's weeks of unglamorous work before a single line of business logic.
What's in the template
Authentication (JWT, stateless)
Register, login, access + refresh tokens, logout. A Spring Security filter validates the Bearer token and loads permissions into the SecurityContext — no server-side session.
RBAC with @PreAuthorize
Users, roles, and permissions with method-level checks. A user without the user:delete permission gets a clean 403.
A generic CRUD example
The article module is a copy-paste scaffold: entity, mapper, service, controller, DTO.…