From 9febefd876464497d29c27fea94cb59ac539664e Mon Sep 17 00:00:00 2001
From: 吴学文 <wuxuewen@wuxuewendeMacBook-Pro.local>
Date: 星期六, 13 四月 2019 23:28:55 +0800
Subject: [PATCH] 修改保存商户目录地址bug

---
 java110-event/src/main/java/com/java110/event/init/SystemStartUpInit.java |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/java110-event/src/main/java/com/java110/event/init/SystemStartUpInit.java b/java110-event/src/main/java/com/java110/event/init/SystemStartUpInit.java
index 3e0319f..940e6af 100644
--- a/java110-event/src/main/java/com/java110/event/init/SystemStartUpInit.java
+++ b/java110-event/src/main/java/com/java110/event/init/SystemStartUpInit.java
@@ -1,14 +1,12 @@
 package com.java110.event.init;
 
-import com.java110.core.factory.AppFactory;
+import com.java110.common.factory.ApplicationContextFactory;
 import com.java110.event.app.AppEventPublishing;
 import com.java110.event.app.AppListener;
 import com.java110.event.listener.common.CommonDispatchListener;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.boot.context.event.ApplicationReadyEvent;
 import org.springframework.context.ApplicationContext;
-import org.springframework.context.ApplicationListener;
-import org.springframework.context.event.ContextRefreshedEvent;
 import org.springframework.core.io.ClassPathResource;
 import org.springframework.core.io.support.PropertiesLoaderUtils;
 
@@ -60,7 +58,7 @@
         //鍔犺浇閰嶇疆鏂囦欢锛屾敞鍐岃鍗曞鐞嗕睛鍚�
         try {
 
-            AppFactory.setApplicationContext(event.getApplicationContext());
+            ApplicationContextFactory.setApplicationContext(event.getApplicationContext());
 
             Properties properties = this.load(DEFAULT_EVENT_PATH,DEFAULT_FILE_NAME);
 
@@ -82,7 +80,7 @@
         //鍔犺浇閰嶇疆鏂囦欢锛屾敞鍐岃鍗曞鐞嗕睛鍚�
         try {
 
-            AppFactory.setApplicationContext(context);
+            ApplicationContextFactory.setApplicationContext(context);
 
             Properties properties = this.load(DEFAULT_EVENT_PATH,DEFAULT_FILE_NAME);
 
@@ -124,7 +122,7 @@
             //杩欓噷涓嶈兘鐩存帴鍙嶅皠锛岃繖鏍� IXXXService 鏃犳硶娉ㄥ叆锛屾墍浠ョ洿鎺ヤ粠spring 涓幏鍙栧凡缁忔敞鍏ョ殑
             //AppListener<?> appListener = (AppListener<?>)Class.forName(listener).newInstance();
 
-            AppListener<?> appListener = (AppListener<?>)AppFactory.getBean(listener);
+            AppListener<?> appListener = (AppListener<?>) ApplicationContextFactory.getBean(listener);
 
             //灏� listener 鏀惧叆 AppEventPublishing 涓柟渚垮悗鏈熸搷浣�
             //娉ㄥ唽渚﹀惉

--
Gitblit v1.8.0