为什么跑项目老是报Invalid bound statement (not found)
2015-03-1010:22:26.648:WARN:/emp-meettingbook-web:unavailableorg.apache.ibatis.bindin...
2015-03-10 10:22:26.648:WARN:/emp-meettingbook-web:unavailable
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.cisetech.emp.dal.mapper.WxTokenMapper.get
at org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod.java:178)
at org.apache.ibatis.binding.MapperMethod.<init>(MapperMethod.java:38)
at org.apache.ibatis.binding.MapperProxy.cachedMapperMethod(MapperProxy.java:49) 展开
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.cisetech.emp.dal.mapper.WxTokenMapper.get
at org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod.java:178)
at org.apache.ibatis.binding.MapperMethod.<init>(MapperMethod.java:38)
at org.apache.ibatis.binding.MapperProxy.cachedMapperMethod(MapperProxy.java:49) 展开
4个回答
展开全部
在是因源配为mapper配置文件没有扫描到, 需要pom文件没有添加配置
<!-- 配置将哪些资源文件(静态文件/模板文件/亏裂历mapper文件)加载到tomcat输出目录里 -->
<resources>
<resource>
<directory>src/main/java</directory><!--java文件的路径-->
<includes>
<include>**/*.*</include>
</includes>
<!-- <filtering>false</filtering>-->
</resource>
<resource>销搜
<directory>src/main/resources</directory><!--资源文件的路径-->
<includes>
<include>**/*.*</include>
</includes>
<!-- <filtering>false</filtering>-->
</resource>
</resources>
<!-- 配置将哪些资源文件(静态文件/模板文件/亏裂历mapper文件)加载到tomcat输出目录里 -->
<resources>
<resource>
<directory>src/main/java</directory><!--java文件的路径-->
<includes>
<include>**/*.*</include>
</includes>
<!-- <filtering>false</filtering>-->
</resource>
<resource>销搜
<directory>src/main/resources</directory><!--资源文件的路径-->
<includes>
<include>**/*.*</include>
</includes>
<!-- <filtering>false</filtering>-->
</resource>
</resources>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
mapper里面的某个参数类型你写错了比如写成早神这样陆搭亏 parameterType="枝轿map"
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
mapper.xml和mapper接口没有绑定,只要将困搜mapper.xml的namespace和mapper接口全路径汪茄历一致即可纳老,这是mybatis代理模式的一种规范
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询