Launch Tomcat after invalid bound statement (not found): Com.taotao.mapper.TbItemMapper.selectByExample error

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.