From 60271e65d95365433df02e322c2ea562c309b101 Mon Sep 17 00:00:00 2001 From: dangsn <dangsn@chicecm.com> Date: 星期四, 06 六月 2024 15:49:19 +0800 Subject: [PATCH] 去掉corba的相关初始化 --- Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/initTask/VciWebInitTaskComponent.java | 40 ---------------------------------------- 1 files changed, 0 insertions(+), 40 deletions(-) diff --git a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/initTask/VciWebInitTaskComponent.java b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/initTask/VciWebInitTaskComponent.java index 8f0ec19..20750b3 100644 --- a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/initTask/VciWebInitTaskComponent.java +++ b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/initTask/VciWebInitTaskComponent.java @@ -129,11 +129,6 @@ @Autowired private WebSecretServiceI secretService; -// /** -// * corba鐨勫鎴风 -// */ -// @Autowired(required = false) -// private JacorbClientMapProperties jacorbClientMapProperties; /** * 鎵ц鍒濆鍖� @@ -142,7 +137,6 @@ @Override public void run(ApplicationArguments args) { initCompatibility(); - initCorbaFromConf(); initSysadmin(); initClearSession(); initSetting(); @@ -235,38 +229,6 @@ } /** - * 浠庡钩鍙扮殑閰嶇疆涓幏鍙朿onf鐨勪俊鎭� - */ - public void initCorbaFromConf(){ - File file = null; - try { - file = ResourceUtils.getFile("classpath:properties/corba.properties"); - } catch (FileNotFoundException e) { - try { - file = ResourceUtils.getFile("classpath:corba.properties"); - } catch (FileNotFoundException fileNotFoundException) { - logger.info("杩欎釜鐜閲屾病鏈夊瓨鏀惧钩鍙扮殑corba閰嶇疆鏂囦欢",fileNotFoundException); - } - } - try { - if (file.exists()) { - Properties properties = new Properties(); - properties.load(new FileInputStream(file)); - String url = properties.getProperty("NameService"); - String name = properties.getProperty("InstanceIdentity"); -// if (StringUtils.isNotBlank(url)) { -// jacorbClientMapProperties.setUrl(url); -// } -// if (StringUtils.isNotBlank(name)) { -// jacorbClientMapProperties.setInstanceIdentity(name); -// } - } - }catch (IOException e) { - logger.error("璇诲彇骞冲彴鐨刢orb閰嶇疆鏂囦欢鍑虹幇浜嗛敊璇�",e); - } - } - - /** * 鍒濆鍖栫敤鎴� */ public void initSysadmin(){ @@ -284,8 +246,6 @@ public void initSetting() { System.out.println("----鍒濆鍖栫敤浜庢煡璇㈤厤缃殑鐢ㄦ埛----"); ClientContextVariable.setClientLanuchMode(LaunchModeEnum.WebApp); -// InvocationUtility.registerIInvocationContext(contextInfoFetcher); -// JacorbClientRequestInterceptor.sessionContext = contextInfoFetcher; System.out.println("----鍒濆鍖栫敤浜庢煡璇㈤厤缃殑鐢ㄦ埛瀹屾垚----"); System.out.println("----寮�濮嬫壂鎻忔湁VciConfigModule娉ㄨВ鐨勭被----"); String[] namesForAnnotation = ApplicationContextProvider.getApplicationContext().getBeanNamesForAnnotation(VciConfigModule.class); -- Gitblit v1.9.3