Snailclimb/spring-security-jwt-guide resource
Spring Security With JWT(含权限验证) 示例,基于 Spring Boot 3.5.0 + Java 21。 observed · 2026-08-28
Health v2 · maintenance only
43/100
- Activity 23
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2535
- days_rel: n/a
- days_push: 464
- n_releases_24m: 0
Adoption not part of the score
1445 stars · 436 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Spring Boot 3.5 + Java 21 example project demonstrating stateless authentication and role-based authorization using Spring Security and JWT, with Redis-backed token session management and JPA for persistence. It is primarily an educational guide for developers learning Spring Security.
Use cases
- learn how to implement JWT login and logout with Spring Security
- example of role-based access control with @PreAuthorize
- see how to store and invalidate tokens in Redis
- learn JPA many-to-many mapping with a join table and auditing
- starting point for a Spring Boot auth demo with H2 in-memory database
When to choose
- you are learning Spring Security + JWT from a working, up-to-date example
- you need a reference for token invalidation on logout/re-login using Redis
- you want a minimal runnable Spring Boot auth demo without installing MySQL
When to avoid
- you need a production-ready, hardened authentication service
- you require a maintained library with a license and long-term support
- you use a stack outside Spring Boot/Java
Facets
learning-resource · maturity active
auth authorization orm caching api-framework security backend developer-tools tutorials web-development jvm self-hosted spring-boot spring-security jwt jpa redis demo-project stateless-authentication role-based-access-control
1 source
- readme: https://github.com/Snailclimb/spring-security-jwt-guide · fetched 2026-08-28 · 822451c59f48
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Snailclimb/spring-security-jwt-guide | main | 43 |
For agents
markdown · JSON · MCP: product_card(name="Snailclimb/spring-security-jwt-guide")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem