The content of element type must match解决方法

当我在mybatis的核心配置文件SqlMapConfig.xml中配置别名的时候,老是提示错误。

把鼠标移到上去就可以看到详细的内容

如下图所示:

问题原因:

通过错误的提示信息,原来这个xml文件中的属性是有顺序要求的。

我们按照提提的属性要求来即可。

原文地址:https://www.cnblogs.com/chunguang-yao/p/10666422.html