mybatis 注解 通过provider生成sql过程中Param注解的坑 Parameter 'arg0' not found
刚开始dao中的方法没有Param注解
然而这里默认的参数名称arg0和arg1,因为拼接sql中有#{obj.XXX}这样的部分,所以执行sql会提示没有obj对象:
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parame...
原创
2018-12-14 14:51:39 ·
2782 阅读 ·
0 评论