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配置错误