Mybatis Invalid bound statement (not found):.....问题

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.mogo.mapper.LossesAreCKDetailMapper.insert
at org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod.java:184)
at org.apache.ibatis.binding.MapperMethod.<init>(MapperMethod.java:38)
at org.apache.ibatis.binding.MapperProxy.cachedMapperMethod(MapperProxy.java:49)
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:42)
at com.sun.proxy.$Proxy80.insert(Unknown Source)
at com.mogo.service.impl.LossesAreServiceImpl.lossesAreCheckOut(LossesAreServiceImpl.java:166)
at com.mogo.service.impl.LossesAreServiceImpl$$FastClassByCGLIB$$9f90d050.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:701)


此情况是由于 Mapper.xml配置文件中 namespace 文件位置写错导致的,特此记录!

你可能感兴趣的:(mybatis)