美文网首页
logback的dtd配置

logback的dtd配置

作者: 旋转马达 | 来源:发表于2018-09-15 14:34 被阅读0次

如果你跟我一样讨厌在配置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>

相关文章

网友评论

      本文标题:logback的dtd配置

      本文链接:https://www.haomeiwen.com/subject/sgazgftx.html