Skip to content

从零入门 !Spring Security With JWT(含权限验证)后端部分代码。

Notifications You must be signed in to change notification settings

MicroSZY/spring-security-jwt-guide

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-security-jwt-guide

English version

如果国内访问缓慢的话,可以通过码云查看: https://gitee.com/SnailClimb/spring-security-jwt-guide

下载配置

  1. git clone https://github.com/Snailclimb/spring-security-jwt-guide.git
  2. 打开项目并且等待Maven下载好相关依赖。建议使用idea 打开,并确保你的idea 下载了 lombok插件。
  3. 修改 application.properties 将数据库连接信息改成你自己的。

示例

1.注册一个账号

Register

2.登录

Login

3.使用正确Token访问需要进行身份验证的资源

Access resources that require authentication

4.不带Token访问需要进行身份验证的资源

Access resources that require authentication  without token

5.使用不正确Token访问需要进行身份验证的资源

Access resources that require authentication  with not correct token

参考

About

从零入门 !Spring Security With JWT(含权限验证)后端部分代码。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%