From 10e9484c823d2e8767227cf38a3e80acc61431e0 Mon Sep 17 00:00:00 2001 From: 许鹏程 <1821349743@qq.com> Date: 星期五, 29 十一月 2024 10:17:06 +0800 Subject: [PATCH] 模块依赖修改 --- src/main/java/com/product/Application.java | 62 +++++++++++++++--------------- pom.xml | 24 +++++------ 2 files changed, 42 insertions(+), 44 deletions(-) diff --git a/pom.xml b/pom.xml index 7f7fd4a..0a0d955 100644 --- a/pom.xml +++ b/pom.xml @@ -40,6 +40,17 @@ </profiles> <dependencies> + + <!--琛ヤ竵妯″潡--> + <dependency> + <groupId>com.lx</groupId> + <artifactId>product-server-patch</artifactId> + </dependency> + <!--浜轰簨绠$悊--> + <dependency> + <groupId>com.lx</groupId> + <artifactId>product-server-hr</artifactId> + </dependency> <!--璁惧绠$悊--> <dependency> <groupId>com.lx</groupId> @@ -171,14 +182,6 @@ <!--椤圭洰绠$悊妯″潡--> <dependency> - <groupId>com.lx</groupId> - <artifactId>product-project-server-base</artifactId> - </dependency> - <dependency> - <groupId>com.lx</groupId> - <artifactId>product-project-server-contract</artifactId> - </dependency> - <dependency> <groupId>com.lx</groupId> <artifactId>product-server-customer</artifactId> </dependency> @@ -189,11 +192,6 @@ <dependency> <groupId>org.spring</groupId> <artifactId>spring-server-master</artifactId> - </dependency> - <!--瑗垮畞--> - <dependency> - <groupId>com.lx</groupId> - <artifactId>product-server-xining</artifactId> </dependency> <dependency> <groupId>com.sendgrid</groupId> diff --git a/src/main/java/com/product/Application.java b/src/main/java/com/product/Application.java index 8095a02..57e13c7 100644 --- a/src/main/java/com/product/Application.java +++ b/src/main/java/com/product/Application.java @@ -26,38 +26,38 @@ * 鍒濆闆嗙兢瀹㈡埛绔繛鎺ユ睜 * 鎵弿澶氫釜璺緞 */ -@SpringBootApplication(exclude = DataSourceAutoConfiguration.class, scanBasePackages = {"com.product", "com.home","org.spring.service.core"}) +@SpringBootApplication(exclude = DataSourceAutoConfiguration.class, scanBasePackages = {"com.product", "org.spring.service.core"}) public class Application extends SpringBootServletInitializer { - @Override - protected SpringApplicationBuilder configure(SpringApplicationBuilder applicationBuilder) { - return applicationBuilder.sources(Application.class); - } + @Override + protected SpringApplicationBuilder configure(SpringApplicationBuilder applicationBuilder) { + return applicationBuilder.sources(Application.class); + } - public static void main(String[] args) { - try { - SpringApplication.run(Application.class, args); - boolean cacheFlat = DataPoolCacheImpl.getInstance().cacheALLData(); - boolean codeFlat = DataPoolCacheImpl.getInstance().initCodeManager(); - RegistValidate.getInstance().registValidateParameter(); - boolean connFlat = DataSourceManager.getInstance().initClientConnectionPool(); - InitialLoad.runInitialization(); - PdfConcurrenceUtil.init(); - String rootPath = ResourceUtils.getURL("classpath:").getPath(); - Global.setPropertyValue("root.path", rootPath); - Global.setPropertyValue("jdk.home", System.getProperties().getProperty("java.home")); - SpringBeanUtil.getBean(CreateSignatureFile.class).analysisSignaturePatch(); - SpringMVCContextHolder.getSystemLogger().info("root.path:" + rootPath); - SpringMVCContextHolder.getSystemLogger().info("jdk.home:" + System.getProperties().getProperty("java.home")); - if (cacheFlat && codeFlat && connFlat) { - SpringMVCContextHolder.getSystemLogger().info("Successful System Startup ! "); - } else { - SpringMVCContextHolder.getSystemLogger().error("System startup failed, Please contact the administrator!"); - } - } catch (Exception e) { - e.printStackTrace(); - SpringMVCContextHolder.getSystemLogger().error("System startup failed:"+e.getMessage()); - SpringMVCContextHolder.getSystemLogger().error("System startup failed, Please contact the administrator!"); - } - } + public static void main(String[] args) { + try { + SpringApplication.run(Application.class, args); + boolean cacheFlat = DataPoolCacheImpl.getInstance().cacheALLData(); + boolean codeFlat = DataPoolCacheImpl.getInstance().initCodeManager(); + RegistValidate.getInstance().registValidateParameter(); + boolean connFlat = DataSourceManager.getInstance().initClientConnectionPool(); + InitialLoad.runInitialization(); + PdfConcurrenceUtil.init(); + String rootPath = ResourceUtils.getURL("classpath:").getPath(); + Global.setPropertyValue("root.path", rootPath); + Global.setPropertyValue("jdk.home", System.getProperties().getProperty("java.home")); + SpringBeanUtil.getBean(CreateSignatureFile.class).analysisSignaturePatch(); + SpringMVCContextHolder.getSystemLogger().info("root.path:" + rootPath); + SpringMVCContextHolder.getSystemLogger().info("jdk.home:" + System.getProperties().getProperty("java.home")); + if (cacheFlat && codeFlat && connFlat) { + SpringMVCContextHolder.getSystemLogger().info("Successful System Startup ! "); + } else { + SpringMVCContextHolder.getSystemLogger().error("System startup failed, Please contact the administrator!"); + } + } catch (Exception e) { + e.printStackTrace(); + SpringMVCContextHolder.getSystemLogger().error("System startup failed:" + e.getMessage()); + SpringMVCContextHolder.getSystemLogger().error("System startup failed, Please contact the administrator!"); + } + } } -- Gitblit v1.9.2