1、 Invalid bound statement(not found)
可以看看编译的target文件中有没有编译好的mapper.xml文件,如果没有说明mapper.xml文件根本没有被识别,在pom文件中加入标识(也有可能是namespace写错了,那些拼写问题这里不谈)
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
</build>
2、元素类型为 “resultMap” 的内容必须匹配 (constructor?,id,result,association*,collection*,discriminator?)"**
这个写resultmap时需要按照这个顺序来result写完才能写association,collection
3、jdbctype中没有LONG,用BIGINT,大文本用LONGVARCHAR