摘要: 获取当前进程的pid import java.lang.management.ManagementFactory; import java.lang.management.RuntimeMXBean; public static final int getProcessID() { try { Ru 阅读全文
posted @ 2021-03-29 16:15 SpecialSpeculator 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 1.@Service修饰类名,同时类继承Thread类 @Service public class MasterSchedulerService extends Thread { /** * logger of MasterSchedulerService */ private static fin 阅读全文
posted @ 2021-03-29 16:10 SpecialSpeculator 阅读(130) 评论(0) 推荐(0) 编辑