转载自:https://i-blog.csdnimg.cn/blog_migrate/b31253664b7ae19b53321e8db8d8cc59.png
原本在Eclipse中好好的MAVEN项目,导入intellij idea中,服务器启动正常,但在调用userMapper接口时,报以下异常:
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.beauxie.wxj.dao.UserMapper.findUserByCondition
- at org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod.java:178)
- 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.$Proxy10.findUserByCondition(Unknown Source)
- at com.beauxie.wxj.service.impl.UserServiceImpl.validata(UserServiceImpl.java:61)
- at com.beauxie.wxj.service.impl.UserServiceImpl.validataUsername(UserServiceImpl.java:35)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:606)
- at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
- at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
- at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
- at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java: