1.自定义BaseServlet 时候,里面的方法应该是重新
HttpServlet里的 service方法,自己写成doget dopost了,错误!
2.mapper 的xml配置文件,
查询总数的方法selectTotalCount 需要返回一个数组,返回值类型应该是int 应该是:resultType="int"
默认生成的是 resultMap="brandResultMap" 忘记了修改
2
Caused by: org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: org.apache.ibatis.binding.BindingException: Parameter 'companyName' not found
.
这个位置忘记加brand.
3.
Caused by: org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: java.sql.SQLSyntaxErrorException:
查总数,忘记加count!!!
标签:lang,ibatis,java,int,reflect,InvocationTargetException,apache,org From: https://www.cnblogs.com/jazzybk/p/16650878.html