Commit 4765aeeb by Future

log

parent 01b79ed5
package com.wecloud.dispatch; package com.wecloud.dispatch;
import com.google.common.base.Throwables;
import com.wecloud.dispatch.common.ActionMethod; import com.wecloud.dispatch.common.ActionMethod;
import com.wecloud.dispatch.common.ApplyInfo; import com.wecloud.dispatch.common.ApplyInfo;
import com.wecloud.dispatch.common.BaseRequest; import com.wecloud.dispatch.common.BaseRequest;
...@@ -208,6 +209,7 @@ public class ActionDispatcher { ...@@ -208,6 +209,7 @@ public class ActionDispatcher {
String message = (e.getMessage() != null ? e.getMessage() : "方法调用异常"); String message = (e.getMessage() != null ? e.getMessage() : "方法调用异常");
throw new IllegalStateException(message, e); throw new IllegalStateException(message, e);
} catch (IllegalAccessException e) { } catch (IllegalAccessException e) {
log.info("异常 ", Throwables.getStackTraceAsString(e));
Throwable t = e.getCause(); Throwable t = e.getCause();
if (t instanceof RuntimeException) { if (t instanceof RuntimeException) {
throw (RuntimeException) t; throw (RuntimeException) t;
......
...@@ -90,6 +90,7 @@ public class JwtFilter extends AuthenticatingFilter { ...@@ -90,6 +90,7 @@ public class JwtFilter extends AuthenticatingFilter {
*/ */
@Override @Override
protected boolean onAccessDenied(ServletRequest request, ServletResponse response) throws Exception { protected boolean onAccessDenied(ServletRequest request, ServletResponse response) throws Exception {
log.error("访问被拒绝。。。");
HttpServletRequest httpServletRequest = WebUtils.toHttp(request); HttpServletRequest httpServletRequest = WebUtils.toHttp(request);
HttpServletResponse httpServletResponse = WebUtils.toHttp(response); HttpServletResponse httpServletResponse = WebUtils.toHttp(response);
// 返回401 // 返回401
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment