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

添加更新默认用户角色

parent dd26f8be
...@@ -3,6 +3,7 @@ package com.mortals.xhx.daemon.applicationservice; ...@@ -3,6 +3,7 @@ package com.mortals.xhx.daemon.applicationservice;
import com.mortals.framework.springcloud.service.IApplicationStartedService; import com.mortals.framework.springcloud.service.IApplicationStartedService;
import com.mortals.framework.util.ThreadPool; import com.mortals.framework.util.ThreadPool;
import com.mortals.xhx.base.system.resource.service.ResourceService; import com.mortals.xhx.base.system.resource.service.ResourceService;
import com.mortals.xhx.base.system.user.service.UserService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.checkerframework.checker.units.qual.A; import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -14,11 +15,17 @@ public class StartService implements IApplicationStartedService { ...@@ -14,11 +15,17 @@ public class StartService implements IApplicationStartedService {
@Autowired @Autowired
private ResourceService resourceService; private ResourceService resourceService;
@Autowired
private UserService userService;
@Override @Override
public void start() { public void start() {
ThreadPool.getInstance().init(10); ThreadPool.getInstance().init(10);
try { try {
log.info("开始同步用户!");
userService.refreshUser();
log.info("结束同步用户!");
log.info("刷新资源..."); log.info("刷新资源...");
resourceService.refreshResourceUrl("com.mortals.xhx", null); resourceService.refreshResourceUrl("com.mortals.xhx", null);
} catch (Exception e) { } catch (Exception 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