Commit 45fa21e2 authored by 赵啸非's avatar 赵啸非

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

parent 1d309092
......@@ -107,19 +107,8 @@ public class ControllerScanUtil {
for (Method method : methods) {
boolean unAuth = method.isAnnotationPresent(UnAuth.class);
if (unAuth) {
//判断下 是否含有list 如果不包含 则返回
boolean mExits2 = method.isAnnotationPresent(PostMapping.class);
log.info("mExits2 :{}",mExits2);
if (mExits2) {
PostMapping postMapping = method.getAnnotation(PostMapping.class);
String s =postMapping.value()[0];
log.info("unauth path :{}", JSON.toJSONString(postMapping));
if(!"list".equalsIgnoreCase(s)){
continue;
}
}else{
continue;
}
}
boolean mExits = method.isAnnotationPresent(RequestMapping.class);
......@@ -154,7 +143,17 @@ public class ControllerScanUtil {
for (Method method : superMethods) {
boolean unAuth = method.isAnnotationPresent(UnAuth.class);
if (unAuth) {
continue;
//判断下 是否含有list 如果不包含 则返回
boolean mExits2 = method.isAnnotationPresent(PostMapping.class);
if (mExits2) {
PostMapping postMapping = method.getAnnotation(PostMapping.class);
String s =postMapping.value()[0];
if(!"list".equalsIgnoreCase(s)){
continue;
}
}else{
continue;
}
}
boolean mExits = method.isAnnotationPresent(RequestMapping.class);
if (mExits) {
......
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