解决XML文件中的警告提示“No grammar constraints (DTD or XML Schema) referenced in the document.”
星期三, 2020-02-12 | Author: Lee | JAVA-and-J2EE | 3,541 views
在springboot项目中使用的自定义的xml文件,
但是显示警告信息“No grammar constraints (DTD or XML Schema) referenced in the document.”
解决如下:
#加上 <!DOCTYPE xml> 即可 |
示例:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE xml> <configuration debug="false"> <springProperty scope="context" name="springAppName" source="spring.application.name"/> <!-- log maxFileSize --> <springProperty scope="context" name="MAX_FILE_SIZE" source="spring.logback.max-file-size" defaultValue="100MB"/> <!-- log maxIndex --> <springProperty scope="context" name="MAX_INDEX" source="spring.logback.max-index" defaultValue="5"/> <!-- log base path --> <property name="LOG_HOME" value="/opt/logs/pomelolee/applog"/> <!-- 控制台输出 --> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{35} - %msg %n</pattern> </encoder> </appender> <!-- 日志输出级别 --> <root level="INFO"> <appender-ref ref="STDOUT" /> </root> </configuration> |
文章作者: Lee
本文地址: https://www.pomelolee.com/2026.html
除非注明,Pomelo Lee文章均为原创,转载请以链接形式标明本文地址
No comments yet.
Leave a comment
Search
相关文章
热门文章
最新文章
文章分类
- ajax (10)
- algorithm-learn (3)
- Android (6)
- as (3)
- computer (85)
- Database (30)
- disucz (4)
- enterprise (1)
- erlang (2)
- flash (5)
- golang (3)
- html5 (18)
- ios (4)
- JAVA-and-J2EE (186)
- linux (143)
- mac (10)
- movie-music (11)
- pagemaker (36)
- php (50)
- spring-boot (2)
- Synology群晖 (2)
- Uncategorized (6)
- unity (1)
- webgame (15)
- wordpress (33)
- work-other (2)
- 低代码 (1)
- 体味生活 (40)
- 前端 (21)
- 大数据 (8)
- 游戏开发 (9)
- 爱上海 (19)
- 读书 (4)
- 软件 (3)