• Stars
    star
    235
  • Rank 167,584 (Top 4 %)
  • Language
    Java
  • Created over 4 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

使用Spring Oauth2做分布式鉴权

最简单的基于Spring Boot/Cloud使用Oauth2分布式鉴权教程.

代码我尽量给出了最简单的形式,只需要你有最基础的Spring Boot基础就能看懂.

新手请按照文件夹顺序一个一个的看,authorization_server是授权服务,resource_server是资源服务,使用test项目中的用例执行测试

每个项目中的文件都非常少,请阅读代码中的注释,相信你一定能看得懂.


大致解释一下本项目的运行方法.

这里以simple_token为例子来讲解.

下载项目并解压之后得到文件夹Spring-Oauth2-Toturials-master

打开intellij,引入项目Spring-Oauth2-Toturials-master\1_simple_token\authorization_server

运行成功无异常后,使用intellij的File-Open打开项目Spring-Oauth2-Toturials-master\1_simple_token\resource_server

这时你应该有两个intellij窗口,分别运行一个项目.

确认两个项目都运行无异常后,再次使用intellij的File-Open打开项目Spring-Oauth2-Toturials-master\1_simple_token\test

test项目不需要运行,它不是一个服务,你可以在test项目中的src\test\java\lee\TT.java中找到单元测试.然后跟着测试类里的注释,一个一个地跑单元测试就行了.

祝学习顺利.


视频课程已发布

1.最简单的使用SpringOAuth2进行分布式权限管理:https://www.bilibili.com/video/BV1p5411N7Po

2.在SpringOAuth2中使用JwtToken和数据库持久化:https://www.bilibili.com/video/BV1Py4y1a7Nu

3.在SpringCloud微服务架构中使用SpringOAuth2(完结):https://www.bilibili.com/video/BV1Ky4y1e7JJ

More Repositories

1

Huggingface_Toturials

bert-base-chinese example
Jupyter Notebook
752
star
2

Simple_Reinforcement_Learning

Jupyter Notebook
274
star
3

More_Simple_Reinforcement_Learning

Jupyter Notebook
198
star
4

Transformer_Example

Python
119
star
5

NER_in_Chinese

Jupyter Notebook
91
star
6

Diffusion_From_Scratch

Jupyter Notebook
89
star
7

Simple_PyTorch2

Jupyter Notebook
88
star
8

Machine-Learning-In-Numpy

纯python实现机器学习算法,非套用sk-learn
Jupyter Notebook
87
star
9

Huggingface_Task

Jupyter Notebook
85
star
10

Diffusion_Training_Examples

Jupyter Notebook
61
star
11

Simple_LLM_DPO

Jupyter Notebook
45
star
12

StableBaselines3_SimpleCases

Jupyter Notebook
42
star
13

NLP-Toturials

Jupyter Notebook
40
star
14

Simple_LLM_PPO

Jupyter Notebook
28
star
15

Simple_Generative_in_PyTorch

Jupyter Notebook
26
star
16

SSD_Object_Detection

Jupyter Notebook
20
star
17

Train_LLM_write_SQL

Jupyter Notebook
18
star
18

Optimization_In_Numpy

Jupyter Notebook
16
star
19

Chinese_Speech_to_Text

Jupyter Notebook
13
star
20

Negative_Sampling_SkipGram

Jupyter Notebook
13
star
21

Stable_Diffusion_fine_tuning

Jupyter Notebook
12
star
22

Single_Round_Questions_and_Answers

Jupyter Notebook
11
star
23

Simple_TRL

Jupyter Notebook
10
star
24

Simple_OCR

Jupyter Notebook
10
star
25

Chess_AI_engine_with_UI

Java
9
star
26

Text_to_Speech_fine_tuning

Jupyter Notebook
7
star
27

Chinese_Poetry_Generate

Jupyter Notebook
7
star
28

Porn_Image_Detecor

Jupyter Notebook
7
star
29

Diffusion_Book

Jupyter Notebook
5
star
30

Faster_RCNN

Jupyter Notebook
5
star
31

Simple_PEFT

Jupyter Notebook
5
star
32

Chinese_Speech_to_Text_CTC

Jupyter Notebook
5
star
33

ocr_id_card

Jupyter Notebook
4
star
34

Simple_Llama3

Jupyter Notebook
1
star
35

Simple_Accelerate

Jupyter Notebook
1
star