<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: dong1415889431</title>
    <description>The latest articles on DEV Community by dong1415889431 (@dong1415889431).</description>
    <link>https://dev.to/dong1415889431</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4277334%2Fcd89a3b3-3ea2-454f-b445-807029121a1f.jpeg</url>
      <title>DEV Community: dong1415889431</title>
      <link>https://dev.to/dong1415889431</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dong1415889431"/>
    <language>en</language>
    <item>
      <title>I built a production-ready Spring Boot admin template in 4 weeks — here's what's inside</title>
      <dc:creator>dong1415889431</dc:creator>
      <pubDate>Wed, 02 Dec 2026 01:45:55 +0000</pubDate>
      <link>https://dev.to/dong1415889431/i-built-a-production-ready-spring-boot-admin-template-in-4-weeks-heres-whats-inside-3471</link>
      <guid>https://dev.to/dong1415889431/i-built-a-production-ready-spring-boot-admin-template-in-4-weeks-heres-whats-inside-3471</guid>
      <description>&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's in the template
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Authentication (JWT, stateless)&lt;/strong&gt;&lt;br&gt;
Register, login, access + refresh tokens, logout. A Spring Security filter validates the Bearer token and loads permissions into the SecurityContext — no server-side session.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;RBAC with @PreAuthorize&lt;/strong&gt;&lt;br&gt;
Users, roles, and permissions with method-level checks. A user without the &lt;code&gt;user:delete&lt;/code&gt; permission gets a clean 403.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A generic CRUD example&lt;/strong&gt;&lt;br&gt;
The article module is a copy-paste scaffold: entity, mapper, service, controller, DTO. Copy it, rename the fields, and you have a new module wired into RBAC.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Redis caching&lt;/strong&gt;&lt;br&gt;
A reusable RedisService wrapper plus login-state caching.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One-command Docker deploy&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;docker compose up -d --build&lt;/code&gt; starts MySQL + Redis + the app, creates the schema, and seeds a default admin account.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tests and docs&lt;/strong&gt;&lt;br&gt;
Unit tests (no database needed) plus a full regression integration suite using Testcontainers. English README with an architecture diagram and API reference.&lt;/p&gt;

&lt;h2&gt;
  
  
  The stack
&lt;/h2&gt;

&lt;p&gt;Java 17 · Spring Boot 3.3 · Spring Security 6 + JWT · MyBatis-Plus 3.5 · MySQL 8 · Redis 7 · Docker&lt;/p&gt;

&lt;h2&gt;
  
  
  Free vs paid
&lt;/h2&gt;

&lt;p&gt;The free open-source version (MIT) has everything above. I also sell a Pro edition that adds an audit log (record every admin CRUD action) and file upload, as a one-time purchase — but the free repo is complete on its own.&lt;/p&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/dong1415889431/spring-boot-admin-template" rel="noopener noreferrer"&gt;https://github.com/dong1415889431/spring-boot-admin-template&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'd love feedback on what would make this more useful. What do you wish a Spring Boot starter template included?&lt;/p&gt;

</description>
      <category>authentication</category>
      <category>backend</category>
      <category>java</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
