October 01, 2017 2:56:38 pm Org.apache.coyote.AbstractProtocol start Info: Starting Protocolhandler ["http-bio-8080"] October 01, 2017 2 : 56:44 PM Org.apache.catalina.core.StandardWrapperValve Invoke severity: Servlet.service () for Servlet [Taotao-manager] in Context with path [] threw exception [Request processing failed; nested exception is Org.apache.ibatis.binding.BindingExce Ption:invalid bound statement (not found): Com.taotao.mapper.TbItemMapper.selectByExample] with Root Causeorg.apache.ibatis.binding.BindingException:Invalid bound statement (not found): Com.taotao.mapper.TbItemMapper.selectByExampleat 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 Com.sun.proxy. $Proxy 27.selectByExample ( Unknown Source) at Com.taotao.service.impl.ItemServicEimpl.getbitembyid (itemserviceimpl.java:33) at Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at Sun.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:62) at Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:43) at Java.lang.reflect.Method.invoke (method.java:498) at Org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection (aoputils.java:317) at Org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint (Reflectivemethodinvocation.java : At Org.springframework.aop.framework.ReflectiveMethodInvocation.proceed (Reflectivemethodinvocation.java : 157) at Org.springframework.transaction.interceptor.transactioninterceptor$1.proceedwithinvocation ( TRANSACTIONINTERCEPTOR.JAVA:99) at Org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction ( transactionaspectsupport.java:267) at Org.springframework.transaction.interceptor.TransactionInterceptor.invoke ( Transactioninterceptor.java: (+) at Org.springframework.aop.framework.ReflectiveMethodInvocation.proceed (reflectivemethodinvocation.java:179 ) at Org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke (exposeinvocationinterceptor.java:92) At Org.springframework.aop.framework.ReflectiveMethodInvocation.proceed (reflectivemethodinvocation.java:179)
Unable to find mapper mapping file, open workspace workspace, discover no XML file at all
Workaround:
Modify the Pom file by adding the following code:
<!--If you do not add this node, the MyBatis mapper.xml file will be omitted. --><build><resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</ include> </includes> <filtering>false</filtering> </resource> </resources>
After Tomcat is reported invalid bound statement (not found): Com.taotao.mapper.TbItemMapper.selectByExample error