SpringBoot整合mybatis报错org.apache.ibatis.binding.BindingException: Invalid bound statement not found异常

本文分析了SpringBoot整合mybatis时出现的'org.apache.ibatis.binding.BindingException: Invalid bound statement not found'异常原因,并提供了解决方案,即在application.properties配置文件中添加XML文件路径。
摘要由CSDN通过智能技术生成
2018-08-03 11:06:16.322  INFO 9960 --- [nio-8080-exec-1] o.apache.tomcat.util.http.parser.Cookie  : A cookie header was received [1521164857,1522032211,1522723085; _ga=GA1.1.246559313.1529924028] that contained an invalid cookie. That cookie will be ignored.Note: further occurrences of this error will be logged at DEBUG level.
2018-08-03 11:06:16.363  INFO 9960 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring FrameworkServlet 'dispatcherServlet'
2018-08-03 11:06:16.364  INFO 9960 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet        : FrameworkServlet 'dispatcherServlet': initialization started
2018-08-03 11:06:16.414  INFO 9960 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet        : FrameworkServlet 'dispatcherServlet': initialization completed in 50 ms
2018-08-03 11:06:16.615 ERROR 9960 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.du.dao.SysMessageDOMapper.insert] with root cause

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.du.dao.SysMessageDOMapper.insert
	at org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod.java:227) ~[mybatis-3.4.6.jar:3.4.6]
	at org.apache.ibatis.binding.MapperMethod.<init>(MapperMethod.java:49) ~[mybatis-3.4.6.jar:3.4.6]
	at org.apache.ibatis.binding.MapperProxy.cachedMapperMethod(MapperProxy.java:65) ~[mybatis-3.4.6.jar:3.4.6]
	at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:58) ~[mybatis-3.4.6.jar:3.4.6]
	at com.sun.proxy.$Proxy62.insert(Unknown Source) ~[na:na]
	at com.du.service.impl.SysMessageImpl.saveMessage(SysMessageImpl.java:25) ~[classes/:na]
	at com.du.service.impl.SysMessageImpl$$FastClassBySpringCGLIB$$29dc44df.invoke(<generated>) ~[classes/:na]
	at org.springframework.cglib.proxy.MethodProx
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值