开发者社区> 问答> 正文

myibatis 标签哪里出现了问题?老是报错

这为ibaits总配置文件。

<?xml version="1.0" encoding="UTF-8" ?> 
<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" 
"http://mybatis.org/dtd/mybatis-3-config.dtd"> 
<configuration> 
<mappers> 
<!--        <mapper resource="这里写引入MYIBATIS的文件"/>--> 
<mapper resource="myibatis/note/Note.xml" /> 
</mappers> 
<properties> 
<property name="dialects" value="mssql" /> 
</properties> 
    
<plugins> 
<plugin interceptor="com.singlee.fms.common.PaginationInterceptor"> 
</plugin> 
</plugins> 
</configuration>

以下为报的错误: Caused by: org.xml.sax.SAXParseException: The content of element type "configuration" must match "(p roperties?,settings?,typeAliases?,typeHandlers?,objectFactory?,objectWrapperFactory?,plugins?,enviro nments?,databaseIdProvider?,mappers?)".

展开
收起
长安归故里. 2020-01-07 20:47:23 870 0
1 条回答
写回答
取消 提交回答
  • The content of element type "configuration" must match "(p roperties?,settings?,typeAliases?,typeHandlers?,objectFactory?,objectWrapperFactory?,plugins?,enviro nments?,databaseIdProvider?,mappers?)".

    注意mappers properties plugins三者的顺序,应该是 properties, plugins, mappers

    2020-01-07 20:47:40
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载