您的位置:首页 > 大数据 > 人工智能

【IDEA】IntelliJ IDEA:Logging system failed to initialize using configuration from 'classpath:config/l

2017-12-18 17:25 796 查看
一、报错信息

Connected to the target VM, address: ‘127.0.0.1:63960’, transport: ‘socket’

Logging system failed to initialize using configuration from ‘classpath:config/logback.xml’

java.io.FileNotFoundException: class path resource [config/logback.xml] cannot be resolved to URL because it does not exist

at org.springframework.util.ResourceUtils.getURL(ResourceUtils.java:138)

at org.springframework.boot.logging.LoggingApplicationListener.initializeSystem(LoggingApplicationListener.java:281)

at org.springframework.boot.logging.LoggingApplicationListener.initialize(LoggingApplicationListener.java:255)

at org.springframework.boot.logging.LoggingApplicationListener.onApplicationEnvironmentPreparedEvent(LoggingApplicationListener.java:224)

at org.springframework.boot.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:200)

at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166)

at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138)

at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:121)

at org.springframework.boot.context.event.EventPublishingRunListener.publishEvent(EventPublishingRunListener.java:111)

at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:65)

at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54)

at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:329)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:306)

at com.platform.PlatformApplication.main(PlatformApplication.java:52)

Exception in thread “main” java.lang.IllegalStateException: java.io.FileNotFoundException: class path resource [config/logback.xml] cannot be resolved to URL because it does not exist

at org.springframework.boot.logging.LoggingApplicationListener.initializeSystem(LoggingApplicationListener.java:289)

at org.springframework.boot.logging.LoggingApplicationListener.initialize(LoggingApplicationListener.java:255)

at org.springframework.boot.logging.LoggingApplicationListener.onApplicationEnvironmentPreparedEvent(LoggingApplicationListener.java:224)

at org.springframework.boot.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:200)

at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166)

at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138)

at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:121)

at org.springframework.boot.context.event.EventPublishingRunListener.publishEvent(EventPublishingRunListener.java:111)

at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:65)

at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54)

at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:329)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:306)

at com.platform.PlatformApplication.main(PlatformApplication.java:52)

Caused by: java.io.FileNotFoundException: class path resource [config/logback.xml] cannot be resolved to URL because it does not exist

at org.springframework.util.ResourceUtils.getURL(ResourceUtils.java:138)

at org.springframework.boot.logging.LoggingApplicationListener.initializeSystem(LoggingApplicationListener.java:281)

… 12 more

Disconnected from the target VM, address: ‘127.0.0.1:63960’, transport: ‘socket’

Process finished with exit code 1



二、解决办法

使用maven的clean命令清理下即可,原来打包的时候,没打包完,残余文件还在;

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐