mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-04-05 17:37:53 +08:00
chore(sso): 去除 demo-sso/sso-server 中多余的异常处理函数
Closes #IAT367
This commit is contained in:
parent
b5908c8ac0
commit
80879ba3b8
@ -1,14 +1,12 @@
|
|||||||
package com.pj.h5;
|
package com.pj.h5;
|
||||||
|
|
||||||
import org.springframework.web.bind.annotation.ExceptionHandler;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
import cn.dev33.satoken.sso.util.SaSsoConsts;
|
|
||||||
import cn.dev33.satoken.sso.template.SaSsoUtil;
|
import cn.dev33.satoken.sso.template.SaSsoUtil;
|
||||||
|
import cn.dev33.satoken.sso.util.SaSsoConsts;
|
||||||
import cn.dev33.satoken.stp.StpUtil;
|
import cn.dev33.satoken.stp.StpUtil;
|
||||||
import cn.dev33.satoken.util.SaFoxUtil;
|
import cn.dev33.satoken.util.SaFoxUtil;
|
||||||
import cn.dev33.satoken.util.SaResult;
|
import cn.dev33.satoken.util.SaResult;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 前后台分离架构下集成SSO所需的代码 (SSO-Server端)
|
* 前后台分离架构下集成SSO所需的代码 (SSO-Server端)
|
||||||
@ -41,11 +39,4 @@ public class H5Controller {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 全局异常拦截
|
|
||||||
@ExceptionHandler
|
|
||||||
public SaResult handlerException(Exception e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
return SaResult.error(e.getMessage());
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user