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

添加权限菜单功能

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