#
Junjie
6 天以前 ff1aa7a9218e458dfd9255b1f87490af52afb62a
src/main/java/com/zy/core/MainProcess.java
@@ -2,7 +2,7 @@
import com.core.common.SpringUtils;
import com.core.exception.CoolException;
import com.zy.core.plugin.MainProcessPluginApi;
import com.zy.core.plugin.api.MainProcessPluginApi;
import com.zy.core.properties.SystemProperties;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
@@ -35,7 +35,7 @@
                        try {
                            mainProcessPluginApi = SpringUtils.getBean(clazz);
                        } catch (CoolException coolException) {
                            continue;
                            Thread.sleep(300);
                        }
                    }
@@ -47,11 +47,16 @@
                    mainProcessPluginApi.run();
                    // 间隔
                    Thread.sleep(200);
                } catch (InterruptedException ie) {
                    Thread.currentThread().interrupt();
                    break;
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        });
        thread.setName("MainProcess");
        thread.setDaemon(true);
        thread.start();
    }