mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
4.0.3
This commit is contained in:
@@ -29,7 +29,6 @@ public StoryResult token(StoryParam story, HttpServletRequest request) {
|
||||
|
||||
自己实现步骤:
|
||||
|
||||
- 在ZuulConfig类中重写`doAfter`方法
|
||||
- 设置`ApiConfig中的tokenValidator属性`
|
||||
|
||||
`TokenValidator`是一个函数式接口,可以直接使用Lambda表达式,示例代码如下:
|
||||
|
Reference in New Issue
Block a user