Commit bf01b4be authored by 赵啸非's avatar 赵啸非

添加权限菜单功能

parent ad6973f8
......@@ -53,8 +53,9 @@ public class ControllerScanUtil {
String result = "";
try {
substringMethod = cls.getMethod("getModuleDesc");
result = (String) substringMethod.invoke(cls.getDeclaredConstructor().newInstance());
if(!ObjectUtils.isEmpty(substringMethod)){
result = (String) substringMethod.invoke(cls.getDeclaredConstructor().newInstance());
}
} catch (Exception e) {
log.error("反射获取controller类异常", e);
}
......
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