如何在STS或者eclipse中配置mybatis的xml文件代码提示

首先需要找到mybatis-3-config.dtd文件:

1.将mybatis的包解压

2.在解压文件中找mybatis-3-config.dtd文件:


3.将文件复制到D:\dtd

然后在sts工具中增加配置

windows→preferences→xml→xml catalog→add

url: http://mybatis.org/dtd/mybatis-3-mapper.dtd 

最后在工程中验证:比如choose when   ,我们只需要<whe +alt +/  则会提示整行

猜你喜欢

转载自blog.csdn.net/weixin_42672525/article/details/82462869