1、下载xsd文件
2、idea添加xsd文件
URI: http://ch.qos.logback/xml/ns/logback File: D:envpluginslogbacklogback.xsd
2、在logback.xml中
<?xml version="1.0" encoding="UTF-8"?> <configuration 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">