MyBatis Invalid bound statement

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.

你可能感兴趣的:(MyBatis Invalid bound statement)