Compare commits
4 Commits
86acdf415a
...
d0dddf3b8a
| Author | SHA1 | Date |
|---|---|---|
|
|
d0dddf3b8a | |
|
|
a6bcebb62b | |
|
|
1cb262daa3 | |
|
|
7c18d36389 |
|
|
@ -29,7 +29,7 @@ http {
|
|||
}
|
||||
|
||||
# 避免actuator暴露
|
||||
if ($request_uri ~ "/actuator") {
|
||||
if ($uri ~ "/actuator") {
|
||||
return 403;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -56,16 +56,8 @@ public class PreAuthorizeAspect
|
|||
// 注解鉴权
|
||||
MethodSignature signature = (MethodSignature) joinPoint.getSignature();
|
||||
checkMethodAnnotation(signature.getMethod());
|
||||
try
|
||||
{
|
||||
// 执行原有逻辑
|
||||
Object obj = joinPoint.proceed();
|
||||
return obj;
|
||||
}
|
||||
catch (Throwable e)
|
||||
{
|
||||
throw e;
|
||||
}
|
||||
// 执行原有逻辑
|
||||
return joinPoint.proceed();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue