mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-10-15 18:54:54 +08:00
update sa-token-doc/up/global-listener.md.
继承接口修改为实现接口
This commit is contained in:
@@ -22,7 +22,7 @@ Sa-Token 提供一种侦听器机制,通过注册侦听器,你可以订阅
|
||||
|
||||
##### 2.1、新建实现类:
|
||||
|
||||
新建`MySaTokenListener.java`,继承`SaTokenListener`接口,并添加上注解`@Component`,保证此类被`SpringBoot`扫描到:
|
||||
新建`MySaTokenListener.java`,实现`SaTokenListener`接口,并添加上注解`@Component`,保证此类被`SpringBoot`扫描到:
|
||||
|
||||
``` java
|
||||
/**
|
||||
|
Reference in New Issue
Block a user