spring集成mybatis的一些东西

1.关于mybatis绑定异常:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): 

网上找了蛮多方法,都不行,最后发现是要有配置这个属性

mybatis.mapper-locations=classpath:mapper/*.xml

2.关于非自动增长主键的表的自动生成问题,自动增长则无需注释掉,非自动增长注释掉。

<table tableName="t_app_version">

    <!--<generatedKey column="native_ver_no" sqlStatement="Mysql" identity="false"/>-->
</table>

猜你喜欢

转载自blog.csdn.net/qq_40006446/article/details/81381661