Commit 1706de8a authored by 赵啸非's avatar 赵啸非

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

parent 59416099
...@@ -109,8 +109,18 @@ public class ControllerScanUtil { ...@@ -109,8 +109,18 @@ public class ControllerScanUtil {
for (Method method : methods) { for (Method method : methods) {
boolean unAuth = method.isAnnotationPresent(UnAuth.class); boolean unAuth = method.isAnnotationPresent(UnAuth.class);
if (unAuth) { if (unAuth) {
//判断下 是否含有list 如果不包含 则返回
boolean mExits = method.isAnnotationPresent(RequestMapping.class);
if (mExits) {
RequestMapping requestMapping = method.getAnnotation(RequestMapping.class);
String s = requestMapping.value()[0];
if(!s.contains("list")){
continue; continue;
} }
}else{
continue;
}
}
boolean mExits = method.isAnnotationPresent(RequestMapping.class); boolean mExits = method.isAnnotationPresent(RequestMapping.class);
if (mExits) { 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