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