Commit 8318f75c authored by 赵啸非's avatar 赵啸非

每天早上定时添加考勤记录

parent 48780549
...@@ -110,13 +110,10 @@ public class ControllerScanUtil { ...@@ -110,13 +110,10 @@ public class ControllerScanUtil {
boolean unAuth = method.isAnnotationPresent(UnAuth.class); boolean unAuth = method.isAnnotationPresent(UnAuth.class);
if (unAuth) { if (unAuth) {
//判断下 是否含有list 如果不包含 则返回 //判断下 是否含有list 如果不包含 则返回
boolean mExits = method.isAnnotationPresent(RequestMapping.class); boolean mExits2 = method.isAnnotationPresent(PostMapping.class);
if (mExits) { if (mExits2) {
RequestMapping requestMapping = method.getAnnotation(RequestMapping.class); PostMapping postMapping = method.getAnnotation(PostMapping.class);
String s = requestMapping.value()[0]; String s =postMapping.value()[0];
log.info("unauth path:{}",s);
if(!"list".equalsIgnoreCase(s)){ if(!"list".equalsIgnoreCase(s)){
continue; continue;
} }
......
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