若是在Configuration.xml文件中没有加上那两行,
<mapper resource="config/Command.xml"/>
<mapper resource="config/Command_Content.xml"/>
系统便会报错误:
Mapped Statements collection does not contain value for Command.queryCommandList
<mapper resource="config/Command.xml"/>
<mapper resource="config/Command_Content.xml"/>
系统便会报错误:
Mapped Statements collection does not contain value for Command.queryCommandList
2017-03-11
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'message where id = 1' at line 1 这个错误是当我删除第一条的时候报的错
2017-03-02
<resultMap type="Open Declaration com.imooc.bean.Message" id="MessageResult">
<!--
这个id只要在resultmap标签中不重复就好
column配置数据库这边的列名,id和result的属性都是一样的含义
-->
<id column="ID" jdbcType="INTEGER" property="id"/>
<result column="COMMAND" jdbcType="VARCHAR" property="command"/>
<!--
这个id只要在resultmap标签中不重复就好
column配置数据库这边的列名,id和result的属性都是一样的含义
-->
<id column="ID" jdbcType="INTEGER" property="id"/>
<result column="COMMAND" jdbcType="VARCHAR" property="command"/>
2017-03-01
mybatis-3-mybatis-3.2.7\mybatis-3-mybatis-3.2.7\src\test\java\org\apache\ibatis\submitted\complex_property
2017-03-01