Invalid bound statement (not found)

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.xinyuan.gateway.login.dao.UserMapper.selectByExample

at org.apache.ibatis.binding.MapperMethod$SqlCommand.(MapperMethod.

at org.apache.ibatis.binding.MapperMethod.(MapperMethod.

at org.apache.ibatis.binding.MapperProxy.cachedMapperMethod(MapperProxy.

at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.

at com.sun.proxy.$Proxy16.selectByExample(Unknown Source)

at com.xinyuan.gateway.login.biz.LoginBiz.selectByExample(LoginBiz.

at com.xinyuan.gateway.login.service.LoginService.getByUsername(LoginService.

at com.xinyuan.gateway.login.service.LoginService$$FastClassBySpringCGLIB$$c99c3529.invoke()

at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.

at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.

at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.

at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.

at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.

at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.

at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.

at com.xinyuan.gateway.login.service.LoginService$$EnhancerBySpringCGLIB$$9279dc97.getByUsername()

at com.xinyuan.gateway.realm.MyRealm.doGetAuthenticationInfo(MyRealm.

at org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.

at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doSingleRealmAuthentication(ModularRealmAuthenticator.

at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.

at org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.

at org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.

at org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.

at org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.

at com.xinyuan.gateway.login.controller.LoginController.login(LoginController.

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.

at

at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.

at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.

at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.

at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.

at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.

at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.

at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.

at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.

at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.

at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.

at

at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.

at

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.

at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.

at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.

at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.

at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.

at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.

at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.

at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.

at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.

at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.

at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.

at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.

at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.

at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.

at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.

at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.

at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.

at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.

at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.

at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.

at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.

at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.

at

at


1.mapper里面的namespace写的不对

2.​UserMapper里面的方法在UserMapper.xml里面没有

3.没有正确配置返回值

4.mybatis配置错误

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值