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

1.将mybatis的包解压

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

 

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

如何在STS或者eclipse中配置mybatis的xml文件代码提示
3.将文件复制到D:\dtd

然后在sts工具中增加配置

windows→preferences→xml→xml catalog→add

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

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

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

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

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

相关文章:

  • 2021-10-26
  • 2021-12-16
  • 2021-08-20
  • 2021-06-28
  • 2021-10-25
猜你喜欢
  • 2022-12-23
  • 2021-11-23
  • 2021-09-11
  • 2021-08-19
  • 2021-09-04
  • 2022-12-23
相关资源
相似解决方案