eclipse对于标签的配置不会出现自动提示的解决

解决办法:引入 mybatis-3-config.dtd 文件
Window-preferences-搜索 xml-xml catalog
在 User Specified Entries 目录下 add->
Locattion:http://mybatis.org/dtd/mybatis-3-mapper.dtd (值与 xml 模板中对应)
Key Type:URI


Key:-//mybatis.org//DTD Mapper 3.0//EN (值与 xml 模板中对应)
第二步:
关闭 xml,重新打开,如果重新打开不可以,重启 Eclipse 即可。
最后点击确定即可

猜你喜欢

转载自www.cnblogs.com/grasslucky/p/9028332.html