| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 打印启动成功的标识 |
| | | */ |
| | | public static void printStartSuccessInfo(){ |
| | | System.out.println("================================================================================================="); |
| | | System.out.println("= ="); |
| | | System.out.println("= 服务启动成功!! ="); |
| | | System.out.println("= service start success !! ="); |
| | | System.out.println("= ="); |
| | | System.out.println("================================================================================================="); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | //加载业务侦听 |
| | | // SystemStartLoadBusinessConfigure.initSystemConfig(LISTENER_PATH); |
| | | //服务启动完成 |
| | | ServiceStartInit.printStartSuccessInfo(); |
| | | } catch (Throwable e) { |
| | | logger.error("系统启动失败", e); |
| | | } |
| | |
| | | ApplicationContext context = SpringApplication.run(ApiApplicationStart.class, args); |
| | | //服务启动加载 |
| | | ServiceStartInit.initSystemConfig(context); |
| | | //服务启动完成 |
| | | ServiceStartInit.printStartSuccessInfo(); |
| | | } catch (Throwable e) { |
| | | logger.error("系统启动失败", e); |
| | | } |
| | |
| | | |
| | | //初始化 activity 流程 |
| | | //DeploymentActivity.deploymentProcess(); |
| | | //服务启动完成 |
| | | ServiceStartInit.printStartSuccessInfo(); |
| | | } |
| | | } |
| | |
| | | ServiceStartInit.preInitSystemConfig(); |
| | | ApplicationContext context = SpringApplication.run(CommunityServiceApplicationStart.class, args); |
| | | ServiceStartInit.initSystemConfig(context); |
| | | //服务启动完成 |
| | | ServiceStartInit.printStartSuccessInfo(); |
| | | } catch (Throwable e) { |
| | | logger.error("系统启动失败", e); |
| | | } |
| | |
| | | // logger.info("{},beanName:{}", ++i, str); |
| | | // } |
| | | |
| | | //服务启动完成 |
| | | ServiceStartInit.printStartSuccessInfo(); |
| | | |
| | | } |
| | | |
| | | /** |
| | |
| | | ServiceStartInit.preInitSystemConfig(); |
| | | ApplicationContext context = SpringApplication.run(FeeServiceApplicationStart.class, args); |
| | | ServiceStartInit.initSystemConfig(context); |
| | | |
| | | //服务启动完成 |
| | | ServiceStartInit.printStartSuccessInfo(); |
| | | } catch (Throwable e) { |
| | | logger.error("系统启动失败", e); |
| | | } |
| | |
| | | //加载业务侦听 |
| | | // SystemStartLoadBusinessConfigure.initSystemConfig(LISTENER_PATH); |
| | | |
| | | //服务启动完成 |
| | | ServiceStartInit.printStartSuccessInfo(); |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | ApplicationContext context = SpringApplication.run(OaServiceApplicationStart.class, args); |
| | | ServiceStartInit.initSystemConfig(context); |
| | | |
| | | //服务启动完成 |
| | | ServiceStartInit.printStartSuccessInfo(); |
| | | |
| | | } |
| | | } |
| | |
| | | |
| | | //加载workId |
| | | loadWorkId(); |
| | | |
| | | //服务启动完成 |
| | | ServiceStartInit.printStartSuccessInfo(); |
| | | } catch (Throwable e) { |
| | | logger.error("系统启动失败", e); |
| | | } |
| | |
| | | |
| | | //初始化 activity 流程 |
| | | //DeploymentActivity.deploymentProcess(); |
| | | |
| | | //服务启动完成 |
| | | ServiceStartInit.printStartSuccessInfo(); |
| | | } |
| | | } |
| | |
| | | ServiceStartInit.initSystemConfig(context); |
| | | //加载业务侦听 |
| | | //SystemStartLoadBusinessConfigure.initSystemConfig(LISTENER_PATH); |
| | | |
| | | //服务启动完成 |
| | | ServiceStartInit.printStartSuccessInfo(); |
| | | } catch (Throwable e) { |
| | | logger.error("系统启动失败", e); |
| | | } |
| | |
| | | ServiceStartInit.initSystemConfig(context); |
| | | //加载业务侦听 |
| | | //SystemStartLoadBusinessConfigure.initSystemConfig(LISTENER_PATH); |
| | | //服务启动完成 |
| | | ServiceStartInit.printStartSuccessInfo(); |
| | | } catch (Throwable e) { |
| | | logger.error("系统启动失败", e); |
| | | } |
| | |
| | | ServiceStartInit.initSystemConfig(context); |
| | | //加载业务侦听 |
| | | // SystemStartLoadBusinessConfigure.initSystemConfig(LISTENER_PATH); |
| | | //服务启动完成 |
| | | ServiceStartInit.printStartSuccessInfo(); |
| | | } catch (Throwable e) { |
| | | logger.error("系统启动失败", e); |
| | | } |
| | |
| | | |
| | | Environment.setSystemStartWay(Environment.SPRING_BOOT); |
| | | |
| | | |
| | | //刷新缓存 |
| | | flushMainCache(args); |
| | | |
| | | //服务启动完成 |
| | | ServiceStartInit.printStartSuccessInfo(); |
| | | |
| | | |
| | | } catch (Throwable e) { |
| | | logger.error("系统启动失败", e); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 刷新主要的缓存 |
| | | * |