eclipse配置mybatis 的xml提示
1.点击 Window--preferences-XML-XML Catalog-add
2.配置XML Catalog Element
Location: 点击 File System ,找到 \org\apache\ibatis\builder\xml\mybatis-3-mapper.dtd
Key Code:
URI
Key:
http://mybatis.org/dtd/mybatis-3-mapper.dtd
3.选择默认打开XML文件的编辑器
在 Window-Preferences-General-Editors-File Associations 中,
File types:选择 *.xml,
Associated editors:选择 XML Editor (Locked by XML (Illformed))