赞
踩
先给出错误的代码代码及图片:
Logging system failed to initialize using configuration from 'classpath:logback.xml'
java.lang.IllegalStateException: Logback configuration error detected:
ERROR in ch.qos.logback.core.joran.action.AppenderRefAction - Could not find an appender named [FILE]. Did you define it below instead of above in the configuration
其实解决办法就在控制台报出的日志里的蓝色url里面,打开url进行查看
它自动跳转到了这里
翻译一下:
简单说,我在logback.xml文件中使用了没有定义的appender标签,查看我的logback.xml配置文件
确实,上面定义为FILE的appender已经注释掉了,但下面依旧使用了,才会报出这样的错误,将下面的注释掉即可解决
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。