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

添加角色菜单权限新实现

parent 60a53b1a
...@@ -53,10 +53,11 @@ public class ControllerScanUtil { ...@@ -53,10 +53,11 @@ 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.getMessage());
} }
//获取基础路径 //获取基础路径
RequestMapping requestMappingCls = cls.getAnnotation(RequestMapping.class); RequestMapping requestMappingCls = cls.getAnnotation(RequestMapping.class);
......
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