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

添加更新默认用户角色

parent 01122f42
...@@ -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");
result = (String) substringMethod.invoke(cls.getDeclaredConstructor().newInstance()); if(!ObjectUtils.isEmpty(substringMethod)){
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);
......
...@@ -18,7 +18,11 @@ public class StartService implements IApplicationStartedService { ...@@ -18,7 +18,11 @@ public class StartService implements IApplicationStartedService {
@Override @Override
public void start() { public void start() {
ThreadPool.getInstance().init(10); ThreadPool.getInstance().init(10);
resourceService.refreshResourceUrl("com.mortals.xhx", null); try {
resourceService.refreshResourceUrl("com.mortals.xhx", null);
} catch (Exception e) {
log.error("刷新资源失败", e);
}
} }
@Override @Override
......
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