ERROR in ch.qos.logback.core.rolling.RollingFileAppender[SERVICE] - Failed to create parent directories for [C:\Users\logs\service\service.log]
ERROR in ch.qos.logback.core.rolling.RollingFileAppender[SERVICE] - openFile(/Users/logs/service/service.log,true) call failed. java.io.FileNotFoundException: \Us
ers\logs\service\service.log (系统找不到指定的路径。)
at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:162)
at org.springframework.boot.logging.AbstractLoggingSystem.initializeWithSpecificConfig(AbstractLoggingSystem.java:66)
at org.springframework.boot.logging.AbstractLoggingSystem.initialize(AbstractLoggingSystem.java:56)
at org.springframework.boot.logging.logback.LogbackLoggingSystem.initialize(LogbackLoggingSystem.java:114)
at org.springframework.boot.logging.LoggingApplicationListener.initializeSystem(LoggingApplicationListener.java:309)
at org.springframework.boot.logging.LoggingApplicationListener.initialize(LoggingApplicationListener.java:277)
at org.springframework.boot.logging.LoggingApplicationListener.onApplicationEnvironmentPreparedEvent(LoggingApplicationListener.java:240)
at org.springframework.boot.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:213)
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.SimpleApplicationEvent
org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem
最新推荐文章于 2024-09-23 10:25:20 发布
在启动Spring Boot应用时遇到了Logback无法创建日志文件的错误,具体表现为无法找到指定路径C:Userslogsserviceservice.log。解决方法包括在用户目录下手动创建日志文件夹或者调整logback.xml中的LOG_HOME配置。此外,还有可能遇到的日志相关警告处理。
摘要由CSDN通过智能技术生成