如果你跟我一样讨厌在配置logback的配置文件的时候没有任何提示,那么下面这段代码可以拯救你,
把https://raw.githubusercontent.com/enricopulatzo/logback-XSD/master/src/main/xsd/logback.xsd指向的xsd文件下载下来放到classpath下就行了,如果是idea直接alt + Enter 点击 fetch xxx 就会自动下来下来了
<?xml version="1.0" encoding="UTF-8" ?>
<configuration debug="false" xmlns="http://ch.qos.logback/xml/ns/logback"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ch.qos.logback/xml/ns/logback
https://raw.githubusercontent.com/enricopulatzo/logback-
XSD/master/src/main/xsd/logback.xsd">
<!--Put your configurations on here-->
</configuration>