出现问题:
- 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)
最后竟然是在加载注解的mysql就报错了。在加载注解的时候,发现是有一些注解的mysql出了问题,导致整个Dao出问题。因此出现了以上情况。