解决方法:加上 <!DOCTYPE xml> <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE xml> <configuration> <!--输出格式--> <appender name