Commit 20d51c5c authored by 赵啸非's avatar 赵啸非

添加角色菜单权限新实现

parent d6c5f6e1
package com.mortals.xhx.daemon.applicationservice;
import com.mortals.framework.springcloud.service.IApplicationStartedService;
import com.mortals.xhx.base.system.resource.service.ResourceService;
import com.mortals.xhx.base.system.user.service.UserService;
import com.mortals.xhx.feign.device.IDeviceFeign;
import com.mortals.xhx.feign.site.ISiteFeign;
......@@ -16,6 +17,9 @@ import org.springframework.stereotype.Component;
@Slf4j
public class DemoStartedService implements IApplicationStartedService {
@Autowired
private ResourceService resourceService;
@Autowired
private UserService userService;
@Autowired
......@@ -40,6 +44,12 @@ public class DemoStartedService implements IApplicationStartedService {
log.info("开始同步用户!");
userService.refreshUser();
log.info("结束同步用户!");
try {
resourceService.refreshResourceUrl("com.mortals.xhx", null);
} catch (Exception e) {
log.error("刷新资源失败", e);
}
}
@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