From dba1e53cd7652f1b973ffec118e5b3312278c814 Mon Sep 17 00:00:00 2001 From: dangsn <dangsn@chicecm.com> Date: 星期二, 11 六月 2024 15:45:24 +0800 Subject: [PATCH] 调整获取用户的接口 --- Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/initTask/VciWebInitTaskComponent.java | 42 +----------------------------------------- 1 files changed, 1 insertions(+), 41 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..f33882e 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,14 +137,13 @@ @Override public void run(ApplicationArguments args) { initCompatibility(); - initCorbaFromConf(); initSysadmin(); initClearSession(); initSetting(); // secretService.getMinDataSecret(); // secretService.getMinIpSecret(); // secretService.getMinUserSecret(); - initService.clearAllCache(); +// initService.clearAllCache(); // initService.initServerCache(); mdService.scanAllMdFile(); initDefaultAttribute(); @@ -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