mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-09-19 01:58:05 +08:00
添加solon适配及demo
This commit is contained in:
@@ -14,10 +14,10 @@ import org.noear.solon.core.handle.Context;
|
||||
* @author noear
|
||||
*/
|
||||
@Component
|
||||
public class GlobalException implements EventListener<SaTokenException> {
|
||||
public class GlobalException implements EventListener<Throwable> {
|
||||
|
||||
@Override
|
||||
public void onEvent(SaTokenException e) {
|
||||
public void onEvent(Throwable e) {
|
||||
Context c = Context.current();
|
||||
|
||||
if (c != null) {
|
||||
|
Reference in New Issue
Block a user