您的位置:首页 > 其它

MyBatis Invalid bound statement

2015-05-08 11:19 281 查看
1. problem description

Spring 3.2.x, MyBatis 3.1.x

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.***.Dao.getItemsByPeriod
at org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod.java:189)
at org.apache.ibatis.binding.MapperMethod.<init>(MapperMethod.java:43)
at org.apache.ibatis.binding.MapperProxy.cachedMapperMethod(MapperProxy.java:58)
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:51)
at $Proxy90.getBasBetsByPeriod(Unknown Source)


2. troubleshooting

The root cause is incorrect mapper xml's namespace, it should be the interface full name, rather than the package full name.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: