学习记录:mybatis全局配置文件和mapper配置文件引入dtd实现XML代码智能提示
1.用压缩器打开我们的mybatis.jar,找到mybatis-3.4.5.jar\org\apache\ibatis\builder\xml 目录,并把mybatis-3-config.dtd和mybatis-3-mapper.dtd这俩个解压出来
2.myeclipse10,打开windows>Preferences
3.选择add之后开始引入你的dtd
location:是你刚才解压出来的dtd文件地址
Key type:必须选择URL
key:http://mybatis.org/dtd/mybatis-3-config.dtd