必须为元素类型 "mapper" 声明属性 "namespace" 或The content of element type "mapper" must match "EMPTY"
来源:互联网 发布:确认密码 javascript 编辑:程序博客网 时间:2024/06/08 16:49
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd"> <mapper namespace = "com.introduce.Modle.User2"><resultMap type="com.introduce.Model.User2" id="user2ResultMap"><result property="name" column="name" /><result property="age" column="age" /><result property="sex" column="sex" /></resultMap><select id="getUser2" resultMap="user2ResultMap"><![CDATA[select * from User2 where name=#{name}]]></select></mapper>
只需把<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">
这行中的两处config 改成mapper即可
阅读全文
0 0
- 必须为元素类型 "mapper" 声明属性 "namespace" 或The content of element type "mapper" must match "EMPTY"
- mybatis Mapping xml报The content of element type "mapper" must match "EMPTY". Children of type "comme
- 解决mybatis问题:The content of element type "mapper" must match "(cache-ref|cache|resultMap*|parameterMa
- The content of element type "mapper" must match "(cache-ref|cache|resultMap*|parameterMap*|sql*|inse
- map.xml文件报The content of element type "mapper" must match "(cache-ref|cache|resultMap*|parameterMap*
- The content of element type "configuration" must match "EMPTY". Children of type "comment" are not a
- package里元素必须按照一定的顺序排列The content of element type "package" must match&nb
- ibatis:The content of element type "sqlMap" must match
- The content of element type "package" must match...
- The content of element type "struts-config" must match 解决方案
- The content of element type "package" must match 。。。。。。
- The content of element type "package" must match 随笔
- The content of element type "web-app" must match "
- The content of element type "web-app" must match
- the content of element type must match解决方法
- The content of element type "tag" must match
- [com.opensymphony.xwork2.util.DomHelper] The content of element type "package" must match
- struts-config.xml配置文件顺序异常: The content of element type "struts-config" must match
- DigitalOcean 更换IP
- linux各种锁机制的使用及区别(浅谈)
- 预处理、结构体10个问答
- 17. Letter Combinations of a Phone Number
- 胡策 zhxP97 a
- 必须为元素类型 "mapper" 声明属性 "namespace" 或The content of element type "mapper" must match "EMPTY"
- 【微信小程序】--bindtap参数传递,配合wx.previewImage实现多张缩略图预览
- 再议Java/Android回调——由一段Bmob查询操作引发的思考
- 位运算
- Opencv 2.4.9在Ubuntu下的配置安装
- Java中的overload和override的区别
- 初学Qt:QLineEdit设置为不可编辑
- 习题3(3.2)
- 信息学奥赛一本通(C++版) 第三部分 数据结构 第一章 栈