You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
16:28:21.708 [main] ERROR com.baidu.disconf.client.core.processor.impl.DisconfFileCoreProcessorImpl.updateOneConfFile(DisconfFileCoreProcessorImpl.java:128) - cannot get kv data for http-auth.properties
java.lang.Exception: cannot load config file: D:\Workspace\5GDNM\microservice\file-comm-service\file-comm\build\classes\java\main\http-auth.properties
at com.baidu.disconf.client.support.utils.ConfigLoaderUtils.loadConfig(ConfigLoaderUtils.java:107) ~[disconf-client-2.6.36.jar:?]
at com.baidu.disconf.client.core.filetype.impl.DisconfPropertiesProcessorImpl.getKvMap(DisconfPropertiesProcessorImpl.java:23) ~[disconf-client-2.6.36.jar:?]
at com.baidu.disconf.client.core.filetype.FileTypeProcessorUtils.getKvMap(FileTypeProcessorUtils.java:47) ~[disconf-client-2.6.36.jar:?]
at com.baidu.disconf.client.core.processor.impl.DisconfFileCoreProcessorImpl.updateOneConfFile(DisconfFileCoreProcessorImpl.java:125) [disconf-client-2.6.36.jar:?]
at com.baidu.disconf.client.core.processor.impl.DisconfFileCoreProcessorImpl.processOneItem(DisconfFileCoreProcessorImpl.java:78) [disconf-client-2.6.36.jar:?]
at com.baidu.disconf.client.core.processor.impl.DisconfFileCoreProcessorImpl.processAllItems(DisconfFileCoreProcessorImpl.java:65) [disconf-client-2.6.36.jar:?]
at com.baidu.disconf.client.core.impl.DisconfCoreMgrImpl.process(DisconfCoreMgrImpl.java:69) [disconf-client-2.6.36.jar:?]
at com.baidu.disconf.client.DisconfMgr.firstScan(DisconfMgr.java:98) [disconf-client-2.6.36.jar:?]
at com.baidu.disconf.client.DisconfMgrBean.postProcessBeanDefinitionRegistry(DisconfMgrBean.java:75) [disconf-client-2.6.36.jar:?]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:275) [spring-context-5.1.5.RELEASE.jar:5.1.5.RELEASE]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:108) [spring-context-5.1.5.RELEASE.jar:5.1.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:705) [spring-context-5.1.5.RELEASE.jar:5.1.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:531) [spring-context-5.1.5.RELEASE.jar:5.1.5.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) [spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) [spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) [spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260) [spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248) [spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]
at com.domc.comm.file.StartUpApp.main(StartUpApp.java:18) [main/:?]
DisconfCenterFile在加载classpath下的disconf.properties文件时,会因为路径不正确报错
16:28:21.708 [main] ERROR com.baidu.disconf.client.core.processor.impl.DisconfFileCoreProcessorImpl.updateOneConfFile(DisconfFileCoreProcessorImpl.java:128) - cannot get kv data for http-auth.properties
java.lang.Exception: cannot load config file: D:\Workspace\5GDNM\microservice\file-comm-service\file-comm\build\classes\java\main\http-auth.properties
at com.baidu.disconf.client.support.utils.ConfigLoaderUtils.loadConfig(ConfigLoaderUtils.java:107) ~[disconf-client-2.6.36.jar:?]
at com.baidu.disconf.client.core.filetype.impl.DisconfPropertiesProcessorImpl.getKvMap(DisconfPropertiesProcessorImpl.java:23) ~[disconf-client-2.6.36.jar:?]
at com.baidu.disconf.client.core.filetype.FileTypeProcessorUtils.getKvMap(FileTypeProcessorUtils.java:47) ~[disconf-client-2.6.36.jar:?]
at com.baidu.disconf.client.core.processor.impl.DisconfFileCoreProcessorImpl.updateOneConfFile(DisconfFileCoreProcessorImpl.java:125) [disconf-client-2.6.36.jar:?]
at com.baidu.disconf.client.core.processor.impl.DisconfFileCoreProcessorImpl.processOneItem(DisconfFileCoreProcessorImpl.java:78) [disconf-client-2.6.36.jar:?]
at com.baidu.disconf.client.core.processor.impl.DisconfFileCoreProcessorImpl.processAllItems(DisconfFileCoreProcessorImpl.java:65) [disconf-client-2.6.36.jar:?]
at com.baidu.disconf.client.core.impl.DisconfCoreMgrImpl.process(DisconfCoreMgrImpl.java:69) [disconf-client-2.6.36.jar:?]
at com.baidu.disconf.client.DisconfMgr.firstScan(DisconfMgr.java:98) [disconf-client-2.6.36.jar:?]
at com.baidu.disconf.client.DisconfMgrBean.postProcessBeanDefinitionRegistry(DisconfMgrBean.java:75) [disconf-client-2.6.36.jar:?]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:275) [spring-context-5.1.5.RELEASE.jar:5.1.5.RELEASE]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:108) [spring-context-5.1.5.RELEASE.jar:5.1.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:705) [spring-context-5.1.5.RELEASE.jar:5.1.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:531) [spring-context-5.1.5.RELEASE.jar:5.1.5.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) [spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) [spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) [spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260) [spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248) [spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]
at com.domc.comm.file.StartUpApp.main(StartUpApp.java:18) [main/:?]
但http-auth.properties在经gradle build后的位置是在
D:\Workspace\5GDNM\microservice\file-comm-service\file-comm\build\classes\java\resources\http-auth.properties
该配置文件由注解@DisconfFile(filename = "http-auth.properties")引入
The text was updated successfully, but these errors were encountered: