错误描述:

Caused by: org.apache.ibatis.builder.BuilderException: Error creating document instance.  Cause: org.xml.sax.SAXParseException; lineNumber: 132; columnNumber: 28; 元素类型 "insert" 必须后跟属性规范 ">" 或 "/>"。
	at org.apache.ibatis.parsing.XPathParser.createDocument(XPathParser.java:259)
	at org.apache.ibatis.parsing.XPathParser.<init>(XPathParser.java:125)
	at org.apache.ibatis.builder.xml.XMLMapperBuilder.<init>(XMLMapperBuilder.java:78)
	at org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:519)
	... 74 more

错误代码:

<insert id="insertSelective" parameterType="org.csun.nc.pojo.OldOut" 
  		useGeneratedKeys="true", keyProperty="id">

截图:

【MyBatis错误集】--lineNumber: 132; columnNumber: 28; 元素类型_spring

细心的朋友已经发现了错误:

【MyBatis错误集】--lineNumber: 132; columnNumber: 28; 元素类型_xml_02

正确的代码:

  <insert id="insertSelective" parameterType="org.csun.nc.pojo.OldOut" 
  		useGeneratedKeys="true" keyProperty="id">