log4j:WARN No appenders could be found for logger (org.springframework.core.env.StandardEnvironment)

報錯原因:缺少日誌文件 解決方法:在下圖位置新建一個文件叫log4j.properties 文件裏的內容是: # Configure logging for testing: optionally with log file log4j.rootLogger=WARN, stdout # log4j.rootLogger=WARN, stdout, logfile log4j.appender.s
相關文章
相關標籤/搜索