# Smith-Cruise/Spring-Boot-Shiro

Shiro基于SpringBoot +JWT搭建简单的restful服务

Repository: https://github.com/Smith-Cruise/Spring-Boot-Shiro
Canonical: https://ross.abutalabs.com/products/spring-boot-shiro
Language: Java
License Family: other
Topics: springboot, shiro, jwt, java, restful
Last push: 2026-02-11T19:50:30+00:00

## Health v2 (maintenance only)
Score: 62/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 67, release rhythm 35, longevity 100
- inputs: {"age_days": 3236, "days_push": 203, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1637, forks 502 (observed 2026-08-28T04:05:14.978495+00:00)

## What it is
A tutorial-style demo project showing how to build a stateless RESTful service using Spring Boot with Apache Shiro and JWT for authentication. It demonstrates annotation-based Shiro configuration, token issuance and validation, and CORS support.

## Use cases
- learn how to secure a Spring Boot REST API with Shiro and JWT
- implement stateless token-based authentication without sessions or cookies
- example of JWT login flow returning 401 on invalid tokens
- reference for Shiro annotation-based configuration in Spring Boot
- set up CORS-enabled RESTful backend with token auth
- understand how to encrypt and verify JWTs with user passwords

## When to choose
- you want a minimal, readable example of Shiro + JWT integration in Spring Boot
- you are building a fully stateless front-end/back-end separated REST API
- you prefer Shiro over Spring Security for authentication

## When to avoid
- you need a production-grade, actively maintained security framework
- you prefer Spring Security which has richer ecosystem and updates
- you need OAuth2, SSO, or advanced authorization features out of the box

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: auth, web-framework, middleware
- domain: web-development, backend, security, tutorials, developer-tools
- platform: jvm
- tags: spring-boot, shiro, jwt, restful, stateless-authentication, tutorial, java, web-server

## Member repositories
- Smith-Cruise/Spring-Boot-Shiro (main) score 62

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:14.978495+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:46:40.163713+00:00, confidence not recorded.
  - readme: https://github.com/Smith-Cruise/Spring-Boot-Shiro (fetched 2026-08-28T04:05:14.978495+00:00, sha e080a4b34c9b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
