2000字范文,分享全网优秀范文,学习好帮手!
2000字范文 > class path resource [logback-spring.xml] cannot be resolved to URL because it does not exist的处理方法

class path resource [logback-spring.xml] cannot be resolved to URL because it does not exist的处理方法

时间:2024-01-03 12:15:05

相关推荐

class path resource [logback-spring.xml] cannot be resolved to URL because it does not exist的处理方法

class path resource [logback-spring.xml] cannot be resolved to URL because it does not exist的处理方法

很多人在使用Idea开发过程中会用到多个开发环境,在这些开发环境之间来回切换的时候,记得多操作一步:点一下Maven的刷新按钮(即Reimport All Maven Projects)。该问题随即解决。并不需要像网上给出的其它方法那样修改配置文件中的属性,我们尽量不改动这些内容。

完整报错内容:

java.lang.IllegalStateException: java.io.FileNotFoundException: class path resource [logback/logback-spring-@profileActive@.xml] cannot be resolved to URL because it does not existat org.springframework.boot.context.logging.LoggingApplicationListener.initializeSystem(LoggingApplicationListener.java:324)at org.springframework.boot.context.logging.LoggingApplicationListener.initialize(LoggingApplicationListener.java:288)at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEnvironmentPreparedEvent(LoggingApplicationListener.java:246)at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:223)at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:76)at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:53)at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:345)at org.springframework.boot.SpringApplication.run(SpringApplication.java:308)at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)Caused by: java.io.FileNotFoundException: class path resource [logback/logback-spring-@profileActive@.xml] cannot be resolved to URL because it does not existat org.springframework.util.ResourceUtils.getURL(ResourceUtils.java:137)at org.springframework.boot.context.logging.LoggingApplicationListener.initializeSystem(LoggingApplicationListener.java:317)... 14 common frames omitted

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。