• Stars
    star
    240
  • Rank 168,229 (Top 4 %)
  • Language
    Java
  • Created over 4 years ago
  • Updated over 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
839
star
2

Simple_Reinforcement_Learning

Jupyter Notebook
330
star
3

More_Simple_Reinforcement_Learning

Jupyter Notebook
295
star
4

Transformer_Example

Python
149
star
5

Diffusion_From_Scratch

Jupyter Notebook
125
star
6

NER_in_Chinese

Jupyter Notebook
110
star
7

Simple_PyTorch2

Jupyter Notebook
103
star
8

Machine-Learning-In-Numpy

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

Huggingface_Task

Jupyter Notebook
88
star
10

Diffusion_Training_Examples

Jupyter Notebook
74
star
11

Simple_LLM_DPO

Jupyter Notebook
62
star
12

StableBaselines3_SimpleCases

Jupyter Notebook
61
star
13

Simple_RLHF

Jupyter Notebook
44
star
14

NLP-Toturials

Jupyter Notebook
43
star
15

Simple_LLM_PPO

Jupyter Notebook
36
star
16

Simple_Generative_in_PyTorch

Jupyter Notebook
32
star
17

Simple_RLHF_Llama3

Jupyter Notebook
26
star
18

Simple_HuggingFace

Jupyter Notebook
26
star
19

SSD_Object_Detection

Jupyter Notebook
20
star
20

Simple_OCR

Jupyter Notebook
20
star
21

Train_LLM_write_SQL

Jupyter Notebook
19
star
22

Optimization_In_Numpy

Jupyter Notebook
17
star
23

Stable_Diffusion_fine_tuning

Jupyter Notebook
16
star
24

Simple_PEFT

Jupyter Notebook
16
star
25

Simple_TRL

Jupyter Notebook
15
star
26

Negative_Sampling_SkipGram

Jupyter Notebook
14
star
27

Chinese_Speech_to_Text

Jupyter Notebook
13
star
28

Single_Round_Questions_and_Answers

Jupyter Notebook
11
star
29

Chess_AI_engine_with_UI

Java
10
star
30

ocr_id_card

Jupyter Notebook
10
star
31

Text_to_Speech_fine_tuning

Jupyter Notebook
8
star
32

Chinese_Poetry_Generate

Jupyter Notebook
8
star
33

Porn_Image_Detecor

Jupyter Notebook
7
star
34

Faster_RCNN

Jupyter Notebook
7
star
35

Chinese_Speech_to_Text_CTC

Jupyter Notebook
6
star
36

Diffusion_Book

Jupyter Notebook
5
star
37

Simple_Accelerate

Jupyter Notebook
4
star
38

Simple_RLHF_tiny

Jupyter Notebook
3
star
39

Simple_Llama3

Jupyter Notebook
1
star