eclipse中配置mybatis框架的自动提示

1、看dtd约束

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">

2、根据dtd约束进行配置,下面的配置得跟你的dtd一样

Window->preferences->xml->xml catalog,



3、最后重启eclispe即可


版权声明:本文为itxiaolong3原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。